[llvm-commits] [llvm] r75763 - /llvm/trunk/include/llvm/Target/TargetRegistry.h
Daniel Dunbar
daniel at zuster.org
Wed Jul 15 02:39:13 PDT 2009
Author: ddunbar
Date: Wed Jul 15 04:38:10 2009
New Revision: 75763
URL: http://llvm.org/viewvc/llvm-project?rev=75763&view=rev
Log:
Mark Target's creation routines as const.
Modified:
llvm/trunk/include/llvm/Target/TargetRegistry.h
Modified: llvm/trunk/include/llvm/Target/TargetRegistry.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetRegistry.h?rev=75763&r1=75762&r2=75763&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetRegistry.h (original)
+++ llvm/trunk/include/llvm/Target/TargetRegistry.h Wed Jul 15 04:38:10 2009
@@ -89,7 +89,7 @@
/// 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 @@
/// 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);
More information about the llvm-commits
mailing list