summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-12 17:13:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-12 17:13:45 +0000
commit2aebdda81e76cc5d2f5d66455bf61586a6880a1e (patch)
tree977cd08e8182c35fcc748421147122a2299fae93 /llvm/lib/IR/Constants.cpp
parentcf4748f18000ac24fb9d07d493be59cf035c8d68 (diff)
downloadbcm5719-llvm-2aebdda81e76cc5d2f5d66455bf61586a6880a1e.tar.gz
bcm5719-llvm-2aebdda81e76cc5d2f5d66455bf61586a6880a1e.zip
Comment update. NFC.
Fix the library name. Don't duplicate the comment in the .cpp file. Don't repeat the name in the comment. llvm-svn: 252911
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 74d42c71de8..bcca8a2047f 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -414,22 +414,6 @@ bool Constant::isConstantUsed() const {
return false;
}
-
-
-/// getRelocationInfo - This method classifies the entry according to
-/// whether or not it may generate a relocation entry. This must be
-/// conservative, so if it might codegen to a relocatable entry, it should say
-/// so. The return values are:
-///
-/// NoRelocation: This constant pool entry is guaranteed to never have a
-/// relocation applied to it (because it holds a simple constant like
-/// '4').
-/// LocalRelocation: This entry has relocations, but the entries are
-/// guaranteed to be resolvable by the static linker, so the dynamic
-/// linker will never see them.
-/// GlobalRelocations: This entry may have arbitrary relocations.
-///
-/// FIXME: This really should not be in IR.
Constant::PossibleRelocationsTy Constant::getRelocationInfo() const {
if (const GlobalValue *GV = dyn_cast<GlobalValue>(this)) {
if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
OpenPOWER on IntegriCloud