1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add a TODO and explain when we can get rid of the isMain field.

llvm-svn: 175932
This commit is contained in:
Eric Christopher 2013-02-22 23:50:01 +00:00
parent f2a0fcd3e3
commit 446940d29d
2 changed files with 2 additions and 2 deletions

View 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); }

View 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),