[PATCH] D13221: Make CompilerInvocation's use of the debug options more understandable.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 10:08:29 PST 2015


thakis added a subscriber: thakis.

================
Comment at: cfe/trunk/lib/Frontend/CompilerInvocation.cpp:401
@@ -411,1 +400,3 @@
+            .Case("limited", CodeGenOptions::LimitedDebugInfo)
+            .Case("standalone", CodeGenOptions::FullDebugInfo));
   }
----------------
This lets cc1 crash if you pass -debug-info-kind=foo for any foo not explicitly handled in the stringswitch. (I don't see a nice and obvious fix, so leaving this to you.)


Repository:
  rL LLVM

http://reviews.llvm.org/D13221





More information about the cfe-commits mailing list