[llvm-commits] [llvm-gcc-4.2] r77268 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-convert.cpp llvm-types.cpp
Owen Anderson
resistor at mac.com
Mon Jul 27 15:30:01 PDT 2009
Author: resistor
Date: Mon Jul 27 17:30:00 2009
New Revision: 77268
URL: http://llvm.org/viewvc/llvm-project?rev=77268&view=rev
Log:
Update for LLVM API change.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=77268&r1=77267&r2=77268&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Jul 27 17:30:00 2009
@@ -286,7 +286,7 @@
}
// Create string table.
- Constant *LLVMValuesTable = Context.getConstantStruct(ValuesForPCH, false);
+ Constant *LLVMValuesTable = ConstantStruct::get(ValuesForPCH, false);
// Create variable to hold this string table.
new GlobalVariable(*TheModule, LLVMValuesTable->getType(), true,
@@ -811,7 +811,7 @@
// __attribute__(constructor) can be on a function with any type. Make sure
// the pointer is void()*.
StructInit[1] = TheFolder->CreateBitCast(Tors[i].first, FPTy);
- InitList.push_back(Context.getConstantStruct(StructInit, false));
+ InitList.push_back(ConstantStruct::get(StructInit, false));
}
Constant *Array = Context.getConstantArray(
Context.getArrayType(InitList[0]->getType(), InitList.size()), InitList);
@@ -1152,7 +1152,7 @@
};
AttributeAnnotateGlobals.push_back(
- Context.getConstantStruct(Element, 4, false));
+ ConstantStruct::get(Element, 4, false));
}
// Get next annotate attribute.
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=77268&r1=77267&r2=77268&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Jul 27 17:30:00 2009
@@ -7116,7 +7116,7 @@
std::vector<Constant*> Elts;
Elts.push_back(Convert(TREE_REALPART(exp)));
Elts.push_back(Convert(TREE_IMAGPART(exp)));
- return Context.getConstantStruct(Elts, false);
+ return ConstantStruct::get(Elts, false);
}
Constant *TreeConstantToLLVM::ConvertNOP_EXPR(tree exp) {
@@ -7302,7 +7302,7 @@
if (AllEltsSameType)
return Context.getConstantArray(
Context.getArrayType(ElTy, ResultElts.size()), ResultElts);
- return Context.getConstantStruct(ResultElts, false);
+ return ConstantStruct::get(ResultElts, false);
}
@@ -7723,7 +7723,7 @@
// Okay, we're done, return the computed elements.
return
- Context.getConstantStruct(LayoutInfo.ResultElts, LayoutInfo.StructIsPacked);
+ ConstantStruct::get(LayoutInfo.ResultElts, LayoutInfo.StructIsPacked);
}
Constant *TreeConstantToLLVM::ConvertUnionCONSTRUCTOR(tree exp) {
@@ -7755,7 +7755,7 @@
Elts.push_back(Context.getNullValue(FillTy));
}
}
- return Context.getConstantStruct(Elts, false);
+ return ConstantStruct::get(Elts, false);
}
//===----------------------------------------------------------------------===//
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=77268&r1=77267&r2=77268&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Mon Jul 27 17:30:00 2009
@@ -192,7 +192,7 @@
}
// Create string table.
- Constant *LTypesNameTable = Context.getConstantStruct(LTypesNames, false);
+ Constant *LTypesNameTable = ConstantStruct::get(LTypesNames, false);
// Create variable to hold this string table.
GlobalVariable *GV = new GlobalVariable(*TheModule,
More information about the llvm-commits
mailing list