]> granicus.if.org Git - clang/commitdiff
Missed a ! in the if statement when these were being set and the options
authorEric Christopher <echristo@gmail.com>
Fri, 16 May 2014 20:46:14 +0000 (20:46 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 16 May 2014 20:46:14 +0000 (20:46 +0000)
are inverted in clang and llvm.

I'll attempt to get a testcase for this that doesn't involve compiling to .s,
but it's unlikely.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index 79c7e8bd5e25239dc8653e47030fd2e60acd696f..1a5213ee8f57340b9d41b54c152d271b029698e2 100644 (file)
@@ -494,7 +494,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
 
   Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll;
   Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels;
-  Options.MCOptions.MCUseDwarfDirectory = CodeGenOpts.NoDwarfDirectoryAsm;
+  Options.MCOptions.MCUseDwarfDirectory = !CodeGenOpts.NoDwarfDirectoryAsm;
   Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack;
 
   TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU,