diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-03-17 23:54:51 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-03-17 23:54:51 +0000 |
commit | 7db449a6e7d7372041de8c4dc39f46194852ae19 (patch) | |
tree | 5abaf8ab8263ff198b8bbd513ae00d3eebda7fbf /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | d89581c5e770c7f2dff83183ad86841cbd0258c7 (diff) | |
download | bcm5719-llvm-7db449a6e7d7372041de8c4dc39f46194852ae19.tar.gz bcm5719-llvm-7db449a6e7d7372041de8c4dc39f46194852ae19.zip |
COFF: Let globals with private linkage reside in their own section
COFF COMDATs (for selection kinds other than 'select any') require at
least one non-section symbol in the symbol table.
Satisfy this by morally enhancing the linkage from private to internal.
Differential Revision: http://reviews.llvm.org/D8394
llvm-svn: 232570
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index faa6fbe6075..75100fb9923 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -343,3 +343,9 @@ const MCExpr *TargetLoweringObjectFile::getDebugThreadLocalSymbol(const MCSymbol // null return could mean 'no location' & we should just do that here. return MCSymbolRefExpr::Create(Sym, *Ctx); } + +void TargetLoweringObjectFile::getNameWithPrefix( + SmallVectorImpl<char> &OutName, const GlobalValue *GV, + bool CannotUsePrivateLabel, Mangler &Mang, const TargetMachine &TM) const { + Mang.getNameWithPrefix(OutName, GV, CannotUsePrivateLabel); +} |