diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 07:37:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-08 07:37:34 +0000 |
commit | d7398c9b699cae3a109e9808401f7d0b2fc7e686 (patch) | |
tree | 60d1137fcbc40fd59e04f470091fcc449bc34638 /include/llvm/CodeGen/MachineRelocation.h | |
parent | ca66b08bc6c3cf899459e642a5297df8b9ccdb0d (diff) | |
download | llvm-d7398c9b699cae3a109e9808401f7d0b2fc7e686.tar.gz llvm-d7398c9b699cae3a109e9808401f7d0b2fc7e686.tar.bz2 llvm-d7398c9b699cae3a109e9808401f7d0b2fc7e686.tar.xz |
Rename isString -> isExternalSymbol; getString -> getExternalSymbol since these work on externsym machine relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRelocation.h')
-rw-r--r-- | include/llvm/CodeGen/MachineRelocation.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineRelocation.h b/include/llvm/CodeGen/MachineRelocation.h index 4b655ed787..80cd035445 100644 --- a/include/llvm/CodeGen/MachineRelocation.h +++ b/include/llvm/CodeGen/MachineRelocation.h @@ -234,9 +234,9 @@ public: return AddrType == isBB; } - /// isString - Return true if this is a constant string. + /// isExternalSymbol - Return true if this is a constant string. /// - bool isString() const { + bool isExternalSymbol() const { return AddrType == isExtSym; } @@ -287,8 +287,8 @@ public: /// getString - If this is a string value, return the string reference. /// - const char *getString() const { - assert(isString() && "This is not a string reference!"); + const char *getExternalSymbol() const { + assert(isExternalSymbol() && "This is not an external symbol reference!"); return Target.ExtSym; } |