diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-17 23:05:52 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-17 23:05:52 +0000 |
commit | 1d617acef9f102629b736db06a5b5def0e116297 (patch) | |
tree | 871a8cf2f39b77b627b0e72137d13895f775ffe9 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 40f8f2ff2452c32529a10ba504ba7fbecf8731cd (diff) | |
download | llvm-1d617acef9f102629b736db06a5b5def0e116297.zip llvm-1d617acef9f102629b736db06a5b5def0e116297.tar.gz llvm-1d617acef9f102629b736db06a5b5def0e116297.tar.bz2 |
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.
llvm-svn: 142301
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index b9e3ed9..8bd67ba 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/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); |