aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-17 23:05:52 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-17 23:05:52 +0000
commitea523d73a6de06f828952a02f5ff86e4cc631695 (patch)
treee9bbc9df77d1aaaf7d6dd22ab3fa20e140d1d2e3 /lib/CodeGen/BackendUtil.cpp
parent3de2fc4e42f8d58f061af3ac8bb7d57e8d86a23b (diff)
Wire up support for the controlling the extended dwarf .file directive. With
r142300 but not this patch, clang -S may emit .s files that assemblers other than llvm-mc can't parse. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BackendUtil.cpp')
-rw-r--r--lib/CodeGen/BackendUtil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp
index b9e3ed9edd..8bd67ba3f0 100644
--- a/lib/CodeGen/BackendUtil.cpp
+++ b/lib/CodeGen/BackendUtil.cpp
@@ -305,6 +305,8 @@ bool EmitAssemblyHelper::AddEmitPasses(BackendAction Action,
TM->setMCSaveTempLabels(true);
if (CodeGenOpts.NoDwarf2CFIAsm)
TM->setMCUseCFI(false);
+ if (CodeGenOpts.NoDwarfDirectoryAsm)
+ TM->setMCUseDwarfDirectory(false);
if (CodeGenOpts.NoExecStack)
TM->setMCNoExecStack(true);