[llvm-commits] [llvm] r163502 - /llvm/trunk/lib/VMCore/Core.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Sep 10 04:52:00 PDT 2012
Author: d0k
Date: Mon Sep 10 06:52:00 2012
New Revision: 163502
URL: http://llvm.org/viewvc/llvm-project?rev=163502&view=rev
Log:
c bindings: revert LLVMConstInlineAsm to always use the default asm dialect.
- The C API should be stable
- InlineAsm::AsmDialect is not exposed to C
- The function didn't match the prototype so this was unreachable code
Modified:
llvm/trunk/lib/VMCore/Core.cpp
Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=163502&r1=163501&r2=163502&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Mon Sep 10 06:52:00 2012
@@ -1055,11 +1055,9 @@
LLVMValueRef LLVMConstInlineAsm(LLVMTypeRef Ty, const char *AsmString,
const char *Constraints,
LLVMBool HasSideEffects,
- LLVMBool IsAlignStack,
- InlineAsm::AsmDialect AsmDialect) {
+ LLVMBool IsAlignStack) {
return wrap(InlineAsm::get(dyn_cast<FunctionType>(unwrap(Ty)), AsmString,
- Constraints, HasSideEffects, IsAlignStack,
- AsmDialect));
+ Constraints, HasSideEffects, IsAlignStack));
}
LLVMValueRef LLVMBlockAddress(LLVMValueRef F, LLVMBasicBlockRef BB) {
More information about the llvm-commits
mailing list