summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/MetadataTest.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
commitb52e23669cbd8637819d9ff7777d43cbc3bf8f31 (patch)
tree50b6f514a58df8209c56928ac50a4fa1bc041c6e /llvm/unittests/IR/MetadataTest.cpp
parente4dacb750da45f4183ae67868d7283a89efe0b40 (diff)
downloadbcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.tar.gz
bcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.zip
IR: Represent -ggnu-pubnames with a flag on the DICompileUnit.
This allows the flag to be persisted through to LTO. Differential Revision: https://reviews.llvm.org/D37655 llvm-svn: 313078
Diffstat (limited to 'llvm/unittests/IR/MetadataTest.cpp')
-rw-r--r--llvm/unittests/IR/MetadataTest.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index 93173f72371..611b82720e9 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -92,10 +92,10 @@ protected:
return DIFile::getDistinct(Context, "file.c", "/path/to/dir");
}
DICompileUnit *getUnit() {
- return DICompileUnit::getDistinct(Context, 1, getFile(), "clang", false,
- "-g", 2, "", DICompileUnit::FullDebug,
- getTuple(), getTuple(), getTuple(),
- getTuple(), getTuple(), 0, true, false);
+ return DICompileUnit::getDistinct(
+ Context, 1, getFile(), "clang", false, "-g", 2, "",
+ DICompileUnit::FullDebug, getTuple(), getTuple(), getTuple(),
+ getTuple(), getTuple(), 0, true, false, false);
}
DIType *getBasicType(StringRef Name) {
return DIBasicType::get(Context, dwarf::DW_TAG_unspecified_type, Name);
@@ -1417,7 +1417,7 @@ TEST_F(DICompileUnitTest, get) {
Context, SourceLanguage, File, Producer, IsOptimized, Flags,
RuntimeVersion, SplitDebugFilename, EmissionKind, EnumTypes,
RetainedTypes, GlobalVariables, ImportedEntities, Macros, DWOId, true,
- false);
+ false, false);
EXPECT_EQ(dwarf::DW_TAG_compile_unit, N->getTag());
EXPECT_EQ(SourceLanguage, N->getSourceLanguage());
@@ -1474,7 +1474,8 @@ TEST_F(DICompileUnitTest, replaceArrays) {
auto *N = DICompileUnit::getDistinct(
Context, SourceLanguage, File, Producer, IsOptimized, Flags,
RuntimeVersion, SplitDebugFilename, EmissionKind, EnumTypes,
- RetainedTypes, nullptr, ImportedEntities, nullptr, DWOId, true, false);
+ RetainedTypes, nullptr, ImportedEntities, nullptr, DWOId, true, false,
+ false);
auto *GlobalVariables = MDTuple::getDistinct(Context, None);
EXPECT_EQ(nullptr, N->getGlobalVariables().get());
OpenPOWER on IntegriCloud