Add a TODO and explain when we can get rid of the isMain field.
authorEric Christopher <echristo@gmail.com>
Fri, 22 Feb 2013 23:50:01 +0000 (23:50 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 22 Feb 2013 23:50:01 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175932 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h
lib/IR/DIBuilder.cpp

index 88ba994586d9c7b10233149f94c2f5ed0796bbba..a281f22ff875f5b2693c7e65aadb2158a212ec33 100644 (file)
@@ -192,7 +192,7 @@ namespace llvm {
     /// code generator accepts maximum one main compile unit per module. If a
     /// module does not contain any main compile unit then the code generator
     /// will emit multiple compile units in the output object file.
-
+    // TODO: This can be removed when we remove the legacy debug information.
     bool isMain() const                { return getUnsignedField(6) != 0; }
     bool isOptimized() const           { return getUnsignedField(7) != 0; }
     StringRef getFlags() const       { return getStringField(8);   }
index 16632a1b97587016c15df8fd564cad717584dd4d..3b691194b400440d709bbf5b5edaf0565cea8ba7 100644 (file)
@@ -98,7 +98,7 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
     MDString::get(VMContext, Filename),
     MDString::get(VMContext, Directory),
     MDString::get(VMContext, Producer),
-    // Deprecate isMain field.
+    // isMain field can be removed when we remove the legacy debug info.
     ConstantInt::get(Type::getInt1Ty(VMContext), true), // isMain
     ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized),
     MDString::get(VMContext, Flags),