Add const.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 28 Mar 2014 16:06:09 +0000 (16:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 28 Mar 2014 16:06:09 +0000 (16:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205013 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAsmBackend.h
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h

index 0e96af872de2c8668215d209df8d866b519489c2..c5f6a662097c5f7466c2eeb3e8e54df33e893aa9 100644 (file)
@@ -90,7 +90,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) {}
 
   /// applyFixup - Apply the \p Value for given \p Fixup into the provided
index 7118a7fd237e6c71dbade9c4b683e8427941f14b..4e6af63382d1f4ac1a2e3943a9079417b066031e 100644 (file)
@@ -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:
index 8b7b7eadc7707e860fc2ea59be2dbed4f8d2ef4c..824dee00c2ab8ce973b3f9120c7940d3ef33d4a5 100644 (file)
@@ -156,7 +156,7 @@ public:
   /// if necessary.
   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) override;
 
 
@@ -592,7 +592,7 @@ void ARMAsmBackend::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) {
   const MCSymbolRefExpr *A = Target.getSymA();
   // Some fixups to thumb function symbols need the low bit (thumb bit)
index e11a5f3eca440fda3b8707395f8f002b3767ffbd..190aa1420ef460bc4838fc907e47e14c3422ce1d 100644 (file)
@@ -254,7 +254,7 @@ void MipsAsmBackend::processFixupValue(const MCAssembler &Asm,
                                        const MCAsmLayout &Layout,
                                        const MCFixup &Fixup,
                                        const MCFragment *DF,
-                                       MCValue &Target,
+                                       const MCValue &Target,
                                        uint64_t &Value,
                                        bool &IsResolved) {
   // At this point we'll ignore the value returned by adjustFixupValue as
index 082a340efe865d425f25e89cd89b5ec413d5566d..e827fdf1892cef4bef639fcd6ef9b7ea805719c3 100644 (file)
@@ -83,7 +83,8 @@ public:
 
   void 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);
 
 }; // class MipsAsmBackend