diff options
author | Peter Zotov <whitequark@whitequark.org> | 2013-11-15 02:51:12 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2013-11-15 02:51:12 +0000 |
commit | fa74752298602e0b74fb60ce3f0e76d0c461d3d8 (patch) | |
tree | dfba3069ca7630366f458baa973befd821fc04c9 /lib/Target/TargetMachineC.cpp | |
parent | 5ea0c20ce7a161d23a9bf8f1beea0ffb6a02898c (diff) | |
download | external_llvm-fa74752298602e0b74fb60ce3f0e76d0c461d3d8.zip external_llvm-fa74752298602e0b74fb60ce3f0e76d0c461d3d8.tar.gz external_llvm-fa74752298602e0b74fb60ce3f0e76d0c461d3d8.tar.bz2 |
[llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachineC.cpp')
-rw-r--r-- | lib/Target/TargetMachineC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp index 061d0e9..e111380 100644 --- a/lib/Target/TargetMachineC.cpp +++ b/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: |