diff options
author | Torok Edwin <edwintorok@gmail.com> | 2011-10-14 20:37:42 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2011-10-14 20:37:42 +0000 |
commit | 31116410de16f435d8c76c53e3d6b95fa812cd2c (patch) | |
tree | 1936682739324df5681ab7843c53f6a77e7fa7b7 /lib/VMCore | |
parent | b10946a5a938a433ca4d7301b8b5ff5a8c11a7ff (diff) | |
download | external_llvm-31116410de16f435d8c76c53e3d6b95fa812cd2c.zip external_llvm-31116410de16f435d8c76c53e3d6b95fa812cd2c.tar.gz external_llvm-31116410de16f435d8c76c53e3d6b95fa812cd2c.tar.bz2 |
bindings: tab and indentation fixes of my previous commits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Core.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 3c78079..77d2e74 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -309,10 +309,10 @@ LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char *Name) const char *LLVMGetStructName(LLVMTypeRef Ty) { - StructType *Type = unwrap<StructType>(Ty); - if (!Type->hasName()) - return 0; - return Type->getName().data(); + StructType *Type = unwrap<StructType>(Ty); + if (!Type->hasName()) + return 0; + return Type->getName().data(); } void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, @@ -533,29 +533,29 @@ LLVMValueRef LLVMMDNode(LLVMValueRef *Vals, unsigned Count) { } const char *LLVMGetMDString(LLVMValueRef V, unsigned* Len) { - if (const MDString *S = dyn_cast<MDString>(unwrap(V))) { - *Len = S->getString().size(); - return S->getString().data(); - } - *Len = 0; - return 0; + if (const MDString *S = dyn_cast<MDString>(unwrap(V))) { + *Len = S->getString().size(); + return S->getString().data(); + } + *Len = 0; + return 0; } unsigned LLVMGetNamedMetadataNumOperands(LLVMModuleRef M, const char* name) { - if (NamedMDNode *N = unwrap(M)->getNamedMetadata(name)) { - return N->getNumOperands(); - } - return 0; + if (NamedMDNode *N = unwrap(M)->getNamedMetadata(name)) { + return N->getNumOperands(); + } + return 0; } void LLVMGetNamedMetadataOperands(LLVMModuleRef M, const char* name, LLVMValueRef *Dest) { - NamedMDNode *N = unwrap(M)->getNamedMetadata(name); - if (!N) - return; - for (unsigned i=0;i<N->getNumOperands();i++) - Dest[i] = wrap(N->getOperand(i)); + NamedMDNode *N = unwrap(M)->getNamedMetadata(name); + if (!N) + return; + for (unsigned i=0;i<N->getNumOperands();i++) + Dest[i] = wrap(N->getOperand(i)); } /*--.. Operations on scalar constants ......................................--*/ @@ -1583,12 +1583,12 @@ void LLVMInstructionEraseFromParent(LLVMValueRef Inst) { } LLVMIntPredicate LLVMGetICmpPredicate(LLVMValueRef Inst) { - if (ICmpInst *I = dyn_cast<ICmpInst>(unwrap(Inst))) - return (LLVMIntPredicate)I->getPredicate(); - if (ConstantExpr *CE = dyn_cast<ConstantExpr>(unwrap(Inst))) - if (CE->getOpcode() == Instruction::ICmp) - return (LLVMIntPredicate)CE->getPredicate(); - return (LLVMIntPredicate)0; + if (ICmpInst *I = dyn_cast<ICmpInst>(unwrap(Inst))) + return (LLVMIntPredicate)I->getPredicate(); + if (ConstantExpr *CE = dyn_cast<ConstantExpr>(unwrap(Inst))) + if (CE->getOpcode() == Instruction::ICmp) + return (LLVMIntPredicate)CE->getPredicate(); + return (LLVMIntPredicate)0; } /*--.. Call and invoke instructions ........................................--*/ |