diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-28 16:06:09 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-28 16:06:09 +0000 |
commit | 3a2bbc9bf4db035fcca049bdb57d2ef96679de8d (patch) | |
tree | fa649632339b5898c1f4c60cddda9d27b9ea5c24 /lib/Target/AArch64/MCTargetDesc | |
parent | 76eb786cf79ce1c3c167c8cb19cfc37aa9b2aafd (diff) | |
download | llvm-3a2bbc9bf4db035fcca049bdb57d2ef96679de8d.tar.gz llvm-3a2bbc9bf4db035fcca049bdb57d2ef96679de8d.tar.bz2 llvm-3a2bbc9bf4db035fcca049bdb57d2ef96679de8d.tar.xz |
Add const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/MCTargetDesc')
-rw-r--r-- | lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp b/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp index 7118a7fd23..4e6af63382 100644 --- a/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp +++ b/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp @@ -43,7 +43,7 @@ public: virtual void processFixupValue(const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup, const MCFragment *DF, - MCValue &Target, uint64_t &Value, + const MCValue &Target, uint64_t &Value, bool &IsResolved); }; } // end anonymous namespace @@ -52,8 +52,8 @@ void AArch64AsmBackend::processFixupValue(const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup, const MCFragment *DF, - MCValue &Target, uint64_t &Value, - bool &IsResolved) { + const MCValue &Target, + uint64_t &Value, bool &IsResolved) { // The ADRP instruction adds some multiple of 0x1000 to the current PC & // ~0xfff. This means that the required offset to reach a symbol can vary by // up to one step depending on where the ADRP is in memory. For example: |