aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetMachineC.cpp
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-15 02:51:12 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-15 02:51:12 +0000
commit0e38fc8d5e417c0116a8bf1852ea1c4244f44b7b (patch)
tree3172a10ff099542b7058b7aea93003250a696d04 /llvm/lib/Target/TargetMachineC.cpp
parentb2c8b8a460cc8eb8bfc0c193a1713047a969525a (diff)
downloadllvm-0e38fc8d5e417c0116a8bf1852ea1c4244f44b7b.zip
llvm-0e38fc8d5e417c0116a8bf1852ea1c4244f44b7b.tar.gz
llvm-0e38fc8d5e417c0116a8bf1852ea1c4244f44b7b.tar.bz2
[llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine
llvm-svn: 194770
Diffstat (limited to 'llvm/lib/Target/TargetMachineC.cpp')
-rw-r--r--llvm/lib/Target/TargetMachineC.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetMachineC.cpp b/llvm/lib/Target/TargetMachineC.cpp
index 061d0e9..e111380 100644
--- a/llvm/lib/Target/TargetMachineC.cpp
+++ b/llvm/lib/Target/TargetMachineC.cpp
@@ -118,9 +118,10 @@ LLVMBool LLVMTargetHasAsmBackend(LLVMTargetRef T) {
return unwrap(T)->hasMCAsmBackend();
}
-LLVMTargetMachineRef LLVMCreateTargetMachine(LLVMTargetRef T, char* Triple,
- char* CPU, char* Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc,
- LLVMCodeModel CodeModel) {
+LLVMTargetMachineRef LLVMCreateTargetMachine(LLVMTargetRef T,
+ const char* Triple, const char* CPU, const char* Features,
+ LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc,
+ LLVMCodeModel CodeModel) {
Reloc::Model RM;
switch (Reloc){
case LLVMRelocStatic: