]> granicus.if.org Git - clang/commitdiff
Turn on the new .file directive when appropriate, instead of turning it off.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 31 Oct 2011 01:06:42 +0000 (01:06 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 31 Oct 2011 01:06:42 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143327 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index 8bd67ba3f0ba2a51bc79cb686357061ce8883d33..bb44d1434c3157a3e42f31653b5569c52561c8b8 100644 (file)
@@ -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);