summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-19 01:28:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-19 01:28:30 +0000
commitfaaa5532749f4445dd6a02ad3be13472aaeae235 (patch)
tree7d300dbe47cbbed6e51ea20d02e6042afbf7295d /include
parent7a8ca279cde02a44bf8c77e20eac1bd5bdbf582b (diff)
downloadllvm-faaa5532749f4445dd6a02ad3be13472aaeae235.tar.gz
llvm-faaa5532749f4445dd6a02ad3be13472aaeae235.tar.bz2
llvm-faaa5532749f4445dd6a02ad3be13472aaeae235.tar.xz
Avoid an infinite cycle with private linkage and -f{data|function}-sections.
When outputting an object we check its section to find its name, but when looking for the section with -ffunction-section we look for the symbol name. Break the loop by requesting a name with the private prefix when constructing the section name. This matches the behavior before r201608. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index d9db22ba1e..155bb0a7a5 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -1338,7 +1338,7 @@ public:
}
void getNameWithPrefix(SmallVectorImpl<char> &Name, const GlobalValue *GV,
- Mangler &Mang) const;
+ Mangler &Mang, bool MayAlwaysUsePrivate = false) const;
MCSymbol *getSymbol(const GlobalValue *GV, Mangler &Mang) const;
private: