summaryrefslogtreecommitdiff
path: root/llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2025-06-08 22:50:59 -0700
committerAmir Ayupov <aaupov@fb.com>2025-06-08 22:50:59 -0700
commiteb1dd48b4ab79e29e82bd396c01b4a7cc83bbd81 (patch)
treead446efb8062977bcf328af58cdc7fcd47864af2 /llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
parent81f92265327a8cf6e730ad1d01fd02f4ef76ed86 (diff)
parent03bbd04bb7ae40dcda7b8bf1d6d09f63191503b0 (diff)
[𝘀𝗽𝗿] changes introduced through rebaseusers/aaupov/spr/main.boltnfci-simplify-dataaggregator-using-traces-1
Created using spr 1.3.4 [skip ci]
Diffstat (limited to 'llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp b/llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
index 613a417db0f9..f9aa050832c0 100644
--- a/llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
+++ b/llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
@@ -79,6 +79,10 @@ void checkElementPropertiesClangCodeview(LVReader *Reader) {
EXPECT_EQ(CompileUnit->getBaseAddress(), 0u);
EXPECT_TRUE(CompileUnit->getProducer().starts_with("clang"));
EXPECT_EQ(CompileUnit->getName(), "test.cpp");
+ LVSourceLanguage Language = CompileUnit->getSourceLanguage();
+ EXPECT_TRUE(Language.isValid());
+ ASSERT_EQ(Language, LVSourceLanguage::CV_LANG_Cpp);
+ ASSERT_EQ(Language.getName(), "Cpp");
EXPECT_EQ(Function->lineCount(), 16u);
EXPECT_EQ(Function->scopeCount(), 1u);
@@ -453,6 +457,7 @@ void elementProperties(SmallString<128> &InputsDir) {
ReaderOptions.setAttributeProducer();
ReaderOptions.setAttributePublics();
ReaderOptions.setAttributeRange();
+ ReaderOptions.setAttributeLanguage();
ReaderOptions.setAttributeLocation();
ReaderOptions.setAttributeSize();
ReaderOptions.setPrintAll();