From: Nick Lewycky Date: Mon, 31 Oct 2011 01:06:42 +0000 (+0000) Subject: Turn on the new .file directive when appropriate, instead of turning it off. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aaf2f36a8c5939b08dc8096da8e6eeeee4975177;p=clang Turn on the new .file directive when appropriate, instead of turning it off. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143327 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 8bd67ba3f0..bb44d1434c 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -305,8 +305,8 @@ bool EmitAssemblyHelper::AddEmitPasses(BackendAction Action, TM->setMCSaveTempLabels(true); if (CodeGenOpts.NoDwarf2CFIAsm) TM->setMCUseCFI(false); - if (CodeGenOpts.NoDwarfDirectoryAsm) - TM->setMCUseDwarfDirectory(false); + if (!CodeGenOpts.NoDwarfDirectoryAsm) + TM->setMCUseDwarfDirectory(true); if (CodeGenOpts.NoExecStack) TM->setMCNoExecStack(true);