aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-26 23:04:00 +0000
committerChris Lattner <sabre@nondot.org>2003-07-26 23:04:00 +0000
commit6856d11231f67bf8359679e5bba4937ef25ce769 (patch)
treefe634cb2031ad785badc09e265fa67498bf0d2b6 /lib/Target/SparcV9/SparcV9CodeEmitter.cpp
parent1d598fa25adc3f821f87f544d8ba20036879aed4 (diff)
downloadexternal_llvm-6856d11231f67bf8359679e5bba4937ef25ce769.zip
external_llvm-6856d11231f67bf8359679e5bba4937ef25ce769.tar.gz
external_llvm-6856d11231f67bf8359679e5bba4937ef25ce769.tar.bz2
This code doesn't modify the LLVM structure, keep stuff const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9CodeEmitter.cpp')
-rw-r--r--lib/Target/SparcV9/SparcV9CodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
index d7ca70c..c82d33d 100644
--- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
+++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
@@ -571,7 +571,7 @@ int64_t SparcV9CodeEmitter::getMachineOpValue(MachineInstr &MI,
// Duplicate code of the above case for VirtualRegister, BasicBlock...
// It should really hit this case, but Sparc backend uses VRegs instead
DEBUG(std::cerr << "Saving reference to MBB\n");
- BasicBlock *BB = MO.getMachineBasicBlock()->getBasicBlock();
+ const BasicBlock *BB = MO.getMachineBasicBlock()->getBasicBlock();
unsigned* CurrPC = (unsigned*)(intptr_t)MCE.getCurrentPCValue();
BBRefs.push_back(std::make_pair(BB, std::make_pair(CurrPC, &MI)));
} else if (MO.isExternalSymbol()) {