mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Add obvious constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fef8b70f9d
commit
608e355484
@ -280,13 +280,13 @@ namespace {
|
||||
|
||||
/// getTargetMachine - Return a reference to the TargetMachine, casted
|
||||
/// to the target-specific type.
|
||||
const X86TargetMachine &getTargetMachine() {
|
||||
const X86TargetMachine &getTargetMachine() const {
|
||||
return static_cast<const X86TargetMachine &>(TM);
|
||||
}
|
||||
|
||||
/// getInstrInfo - Return a reference to the TargetInstrInfo, casted
|
||||
/// to the target-specific type.
|
||||
const X86InstrInfo *getInstrInfo() {
|
||||
const X86InstrInfo *getInstrInfo() const {
|
||||
return getTargetMachine().getInstrInfo();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user