mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Mark Target's creation routines as const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4246790aa8
commit
4883630360
@ -89,7 +89,7 @@ namespace llvm {
|
||||
|
||||
/// createTargetMachine - Create a target specific machine implementation.
|
||||
TargetMachine *createTargetMachine(const Module &M,
|
||||
const std::string &Features) {
|
||||
const std::string &Features) const {
|
||||
if (!TargetMachineCtorFn)
|
||||
return 0;
|
||||
return TargetMachineCtorFn(M, Features);
|
||||
@ -98,7 +98,7 @@ namespace llvm {
|
||||
/// createAsmPrinter - Create a target specific assembly printer pass.
|
||||
FunctionPass *createAsmPrinter(formatted_raw_ostream &OS,
|
||||
TargetMachine &M,
|
||||
bool Verbose) {
|
||||
bool Verbose) const {
|
||||
if (!AsmPrinterCtorFn)
|
||||
return 0;
|
||||
return AsmPrinterCtorFn(OS, M, Verbose);
|
||||
|
Loading…
x
Reference in New Issue
Block a user