]> granicus.if.org Git - clang/commitdiff
Update the command line here and update the comment, we're just going
authorEric Christopher <echristo@apple.com>
Mon, 6 Feb 2012 19:13:09 +0000 (19:13 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 6 Feb 2012 19:13:09 +0000 (19:13 +0000)
to leave this as a debug only option for now.

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

lib/Driver/Driver.cpp
lib/Driver/Tools.cpp

index bab7568736da5d472b066ce1044f698154e5aa91..5815fda754e8e6fa73f9fc1ed746268e7d02b7e3 100644 (file)
@@ -868,9 +868,8 @@ void Driver::BuildUniversalActions(const ToolChain &TC,
 
         Actions.push_back(new DsymutilJobAction(Inputs, types::TY_dSYM));
 
-       // Verify the debug output if we're in assert mode.
-       // TODO: The verifier is noisy by default so put this under an
-       // option for now.
+        // Verify the debug information if we're in debug mode and '-verify'
+        // is passed.
        #ifndef NDEBUG
        if (Args.hasArg(options::OPT_verify)) {
          ActionList VerifyInputs;
index 5c88468b296d022b67a4ffe025313d22193445a8..0b713c111b0a527744818dd272d2ebb1449bd3d5 100644 (file)
@@ -4079,6 +4079,8 @@ void darwin::VerifyDebug::ConstructJob(Compilation &C, const JobAction &JA,
                                       const char *LinkingOutput) const {
   ArgStringList CmdArgs;
   CmdArgs.push_back("--verify");
+  CmdArgs.push_back("--debug-info");
+  CmdArgs.push_back("--eh-frame");
 
   assert(Inputs.size() == 1 && "Unable to handle multiple inputs.");
   const InputInfo &Input = Inputs[0];