Added support for macro emission in dwarf (supporting DWARF version 4).
[oota-llvm.git] / lib / IR / Verifier.cpp
index fb42ea16c9979662e1cd84a06e4f0032e8b78668..64d7575b8a1fc0b62f45f0a57e8688d9b00b8543 100644 (file)
@@ -984,6 +984,9 @@ void Verifier::visitDIMacro(const DIMacro &N) {
          N.getMacinfoType() == dwarf::DW_MACINFO_undef,
          "invalid macinfo type", &N);
   Assert(!N.getName().empty(), "anonymous macro", &N);
+  if (!N.getValue().empty()) {
+    assert(N.getValue().data()[0] != ' ' && "Macro value has a space prefix");
+  }
 }
 
 void Verifier::visitDIMacroFile(const DIMacroFile &N) {