summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-28 16:06:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-28 16:06:09 +0000
commit3e3de5e353d99a2ac3d21a13f09ccdbc831db23d (patch)
tree4a346f4e83f7d0a0dec0bd0d6f261d6cd20a8a46 /llvm/lib/Target/AArch64
parent4a37d60acab7aaaf94ed7d0768ef6355fe2a87f8 (diff)
downloadbcm5719-llvm-3e3de5e353d99a2ac3d21a13f09ccdbc831db23d.tar.gz
bcm5719-llvm-3e3de5e353d99a2ac3d21a13f09ccdbc831db23d.zip
Add const.
llvm-svn: 205013
Diffstat (limited to 'llvm/lib/Target/AArch64')
-rw-r--r--llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
index 7118a7fd237..4e6af63382d 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud