aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-03-24 00:34:02 +0000
committerEric Christopher <echristo@gmail.com>2016-03-24 00:34:02 +0000
commit0945a64767d9c79ee97833b9f9ab15264be74ee1 (patch)
tree5ea5cc1bfc24822b88ca28cd1716461897b19bf7 /clang/lib/Driver/Tools.cpp
parentf828bba5bf88fd1d8a2a4cadc44df7203d1d7e63 (diff)
downloadllvm-0945a64767d9c79ee97833b9f9ab15264be74ee1.zip
llvm-0945a64767d9c79ee97833b9f9ab15264be74ee1.tar.gz
llvm-0945a64767d9c79ee97833b9f9ab15264be74ee1.tar.bz2
Modules builds are necessarily compile actions, but they don't
necessarily produce object files. Turn off split dwarf if we're not producing a file that the driver believes is an object file. llvm-svn: 264227
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 7d69756..e725e5a 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -5737,7 +5737,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// Handle the debug info splitting at object creation time if we're
// creating an object.
// TODO: Currently only works on linux with newer objcopy.
- if (SplitDwarf && !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA))
+ if (SplitDwarf && Output.getType() == types::TY_Object)
SplitDebugInfo(getToolChain(), C, *this, JA, Args, Output, SplitDwarfOut);
if (Arg *A = Args.getLastArg(options::OPT_pg))