diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-06 02:09:34 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-06 02:09:34 +0000 |
commit | 8a484c30178b49fcadad8c6656d2eab94d2d1f42 (patch) | |
tree | f14d71f5b075a0e73ceeaa92b7a9136c765e8ab2 /clang/lib/Driver/Driver.cpp | |
parent | ace2f091fd4e2123794fc534da284e7cda39f314 (diff) | |
download | bcm5719-llvm-8a484c30178b49fcadad8c6656d2eab94d2d1f42.tar.gz bcm5719-llvm-8a484c30178b49fcadad8c6656d2eab94d2d1f42.zip |
clang-cl: Implement /GL in terms of -flto.
No documentation yet; the linker needs more work.
Differential Revision: http://reviews.llvm.org/D10270
llvm-svn: 239213
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 059f424f75d..a04a1f8d341 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1744,7 +1744,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, // Determine what the derived output name should be. const char *NamedOutput; - if (JA.getType() == types::TY_Object && + if ((JA.getType() == types::TY_Object || JA.getType() == types::TY_LTO_BC) && C.getArgs().hasArg(options::OPT__SLASH_Fo, options::OPT__SLASH_o)) { // The /Fo or /o flag decides the object filename. StringRef Val = C.getArgs().getLastArg(options::OPT__SLASH_Fo, |