summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-02-22 23:50:01 +0000
committerEric Christopher <echristo@gmail.com>2013-02-22 23:50:01 +0000
commit89524713280965af5b743e6d5d5dc9bebc21215f (patch)
treeb31f8a7b1444b15e164d4f66a922366d570ef1ae /llvm
parenta3da7a58792df469b53c64666241ed05069d0a5c (diff)
downloadbcm5719-llvm-89524713280965af5b743e6d5d5dc9bebc21215f.tar.gz
bcm5719-llvm-89524713280965af5b743e6d5d5dc9bebc21215f.zip
Add a TODO and explain when we can get rid of the isMain field.
llvm-svn: 175932
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/DebugInfo.h2
-rw-r--r--llvm/lib/IR/DIBuilder.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/DebugInfo.h b/llvm/include/llvm/DebugInfo.h
index 88ba994586d..a281f22ff87 100644
--- a/llvm/include/llvm/DebugInfo.h
+++ b/llvm/include/llvm/DebugInfo.h
@@ -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); }
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 16632a1b975..3b691194b40 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -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),
OpenPOWER on IntegriCloud