forked from OSchip/llvm-project
Move LLVMConstStructInContext so that declarationa nd definition order match. NFC
llvm-svn: 263348
This commit is contained in:
parent
610da4fbaf
commit
c78768f17d
|
@ -910,14 +910,6 @@ LLVMValueRef LLVMConstStringInContext(LLVMContextRef C, const char *Str,
|
|||
return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length),
|
||||
DontNullTerminate == 0));
|
||||
}
|
||||
LLVMValueRef LLVMConstStructInContext(LLVMContextRef C,
|
||||
LLVMValueRef *ConstantVals,
|
||||
unsigned Count, LLVMBool Packed) {
|
||||
Constant **Elements = unwrap<Constant>(ConstantVals, Count);
|
||||
return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count),
|
||||
Packed != 0));
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMConstString(const char *Str, unsigned Length,
|
||||
LLVMBool DontNullTerminate) {
|
||||
return LLVMConstStringInContext(LLVMGetGlobalContext(), Str, Length,
|
||||
|
@ -944,6 +936,14 @@ LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,
|
|||
return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V));
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMConstStructInContext(LLVMContextRef C,
|
||||
LLVMValueRef *ConstantVals,
|
||||
unsigned Count, LLVMBool Packed) {
|
||||
Constant **Elements = unwrap<Constant>(ConstantVals, Count);
|
||||
return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count),
|
||||
Packed != 0));
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count,
|
||||
LLVMBool Packed) {
|
||||
return LLVMConstStructInContext(LLVMGetGlobalContext(), ConstantVals, Count,
|
||||
|
|
Loading…
Reference in New Issue