diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-23 14:50:01 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-23 14:50:01 +0000 |
commit | 0408e1d309a743aca4ed4592cf2c712a71537901 (patch) | |
tree | 6be075b410677415707e0987e3a49123130cef22 /include/llvm/CodeGen | |
parent | b2f21fb044b6b5c52cff6227f9f79ca4ed42b18f (diff) | |
download | src-0408e1d309a743aca4ed4592cf2c712a71537901.tar.gz src-0408e1d309a743aca4ed4592cf2c712a71537901.zip |
Import LLVM r73954.vendor/llvm/llvm-r73954
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=194710
svn path=/vendor/llvm/llvm-r73954/; revision=194712; tag=vendor/llvm/llvm-r73954
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/BinaryObject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/BinaryObject.h b/include/llvm/CodeGen/BinaryObject.h index 0780cd6ab4f4..4b66fe85678c 100644 --- a/include/llvm/CodeGen/BinaryObject.h +++ b/include/llvm/CodeGen/BinaryObject.h @@ -61,6 +61,11 @@ public: return Relocations; } + /// hasRelocations - Return true if 'Relocations' is not empty + bool hasRelocations() const { + return !Relocations.empty(); + } + /// emitByte - This callback is invoked when a byte needs to be /// written to the data stream. inline void emitByte(uint8_t B) { @@ -317,6 +322,7 @@ public: void addRelocation(const MachineRelocation& relocation) { Relocations.push_back(relocation); } + }; } // end namespace llvm |