aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-15 09:38:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-15 09:38:10 +0000
commit488363036029c3743f3e28122f8e7237c01e4df5 (patch)
tree34ed375e492859a2a9e0accf6a9d18cdc4931539
parent4246790aa84a530b0378d917023584c2c7adb4a9 (diff)
downloadexternal_llvm-488363036029c3743f3e28122f8e7237c01e4df5.zip
external_llvm-488363036029c3743f3e28122f8e7237c01e4df5.tar.gz
external_llvm-488363036029c3743f3e28122f8e7237c01e4df5.tar.bz2
Mark Target's creation routines as const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75763 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetRegistry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetRegistry.h b/include/llvm/Target/TargetRegistry.h
index 204d5b0..0e46526 100644
--- a/include/llvm/Target/TargetRegistry.h
+++ b/include/llvm/Target/TargetRegistry.h
@@ -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);