summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-23 13:59:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-23 13:59:29 +0000
commitc233f74e6e36bada9e85b02a2f6b5b18002efb2d (patch)
tree93c45d633396baaad1b7e2b55278d96c5f2a90f5 /llvm/lib/LTO
parentb7915a1f0be2395b6caf97ea4c032ad8a7b048e4 (diff)
downloadbcm5719-llvm-c233f74e6e36bada9e85b02a2f6b5b18002efb2d.tar.gz
bcm5719-llvm-c233f74e6e36bada9e85b02a2f6b5b18002efb2d.zip
Simplify the Mangler interface now that DataLayout is mandatory.
We only need to pass in a DataLayout when mangling a raw string, not when constructing the mangler. llvm-svn: 240405
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 716d66abf1c..149ec6a4f37 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -453,7 +453,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
passes.add(createVerifierPass());
// mark which symbols can not be internalized
- Mangler Mangler(TargetMach->getDataLayout());
+ Mangler Mangler;
std::vector<const char*> MustPreserveList;
SmallPtrSet<GlobalValue*, 8> AsmUsed;
std::vector<StringRef> Libcalls;
OpenPOWER on IntegriCloud