summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-16 23:03:00 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-16 23:03:00 +0000
commit313b6bfbe77975c8f9fda457453886b713a2f611 (patch)
tree181f1271360c71d7eb6637a304e4eafd8f80f3fd /clang/lib/Driver/Tools.cpp
parent3eae17e74d620384f9671c6c04468525dbcb244a (diff)
downloadbcm5719-llvm-313b6bfbe77975c8f9fda457453886b713a2f611.tar.gz
bcm5719-llvm-313b6bfbe77975c8f9fda457453886b713a2f611.zip
Revert r167799. It's not really correct, and it doesn't fix the problem that it was intended to fix.
llvm-svn: 168217
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 8763f7aa77a..01bcf48485c 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -4399,22 +4399,15 @@ void darwin::Link::AddLinkArgs(Compilation &C,
CmdArgs.push_back("-demangle");
}
- if (Version[0] >= 116 && D.IsUsingLTO(Args)) {
- if (NeedsTempPath(Inputs)) {
- // If we are using LTO, then automatically create a temporary file path
- // for the linker to use, so that it's lifetime will extend past a
- // possible dsymutil step.
- const char *TmpPath = C.getArgs().MakeArgString(
- D.GetTemporaryPath("cc", types::getTypeTempSuffix(types::TY_Object)));
- C.addTempFile(TmpPath);
- CmdArgs.push_back("-object_path_lto");
- CmdArgs.push_back(TmpPath);
- }
-
- // FIXME: Disable the creation of accelerator tables when using LTO. They
- // don't currently work and can cause other tools to bork.
- CmdArgs.push_back("-mllvm");
- CmdArgs.push_back("-dwarf-accel-tables=Disable");
+ // If we are using LTO, then automatically create a temporary file path for
+ // the linker to use, so that it's lifetime will extend past a possible
+ // dsymutil step.
+ if (Version[0] >= 116 && D.IsUsingLTO(Args) && NeedsTempPath(Inputs)) {
+ const char *TmpPath = C.getArgs().MakeArgString(
+ D.GetTemporaryPath("cc", types::getTypeTempSuffix(types::TY_Object)));
+ C.addTempFile(TmpPath);
+ CmdArgs.push_back("-object_path_lto");
+ CmdArgs.push_back(TmpPath);
}
// Derived from the "link" spec.
OpenPOWER on IntegriCloud