summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-06-27 01:32:08 +0000
committerBill Wendling <isanbard@gmail.com>2008-06-27 01:32:08 +0000
commit0ac1b6d768411cb84fbf7df3ff759331b816d111 (patch)
treec9bef46a2729c66462a0a0b314209a892a481003 /lib/CodeGen/MachineModuleInfo.cpp
parent914c970899ce3281a8d14d924ec1bfe335624ac6 (diff)
downloadllvm-0ac1b6d768411cb84fbf7df3ff759331b816d111.tar.gz
llvm-0ac1b6d768411cb84fbf7df3ff759331b816d111.tar.bz2
llvm-0ac1b6d768411cb84fbf7df3ff759331b816d111.tar.xz
Cruft left from patch revert...sorry. :-(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index ae3632ac28..35b1941b66 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -38,7 +38,7 @@ char MachineModuleInfo::ID = 0;
/// getGlobalVariablesUsing - Return all of the GlobalVariables which have the
/// specified value in their initializer somewhere.
static void
-getGlobalVariablesUsing(Value *V, SmallVectorImpl<GlobalVariable*> &Result) {
+getGlobalVariablesUsing(Value *V, std::vector<GlobalVariable*> &Result) {
// Scan though value users.
for (Value::use_iterator I = V->use_begin(), E = V->use_end(); I != E; ++I) {
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I)) {
@@ -55,7 +55,7 @@ getGlobalVariablesUsing(Value *V, SmallVectorImpl<GlobalVariable*> &Result) {
/// named GlobalVariable.
static void
getGlobalVariablesUsing(Module &M, const std::string &RootName,
- SmallVectorImpl<GlobalVariable*> &Result) {
+ std::vector<GlobalVariable*> &Result) {
std::vector<const Type*> FieldTypes;
FieldTypes.push_back(Type::Int32Ty);
FieldTypes.push_back(Type::Int32Ty);
@@ -513,6 +513,9 @@ const PointerType *DISerializer::getEmptyStructPtrType() {
// Construct the pointer to empty structure type.
const StructType *EmptyStructTy =
StructType::get(std::vector<const Type*>());
+
+ // Construct the pointer to empty structure type.
+ EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
return EmptyStructPtrTy;
}
@@ -831,7 +834,7 @@ const UniqueVector<CompileUnitDesc *> MachineModuleInfo::getCompileUnits()const{
void
MachineModuleInfo::getAnchoredDescriptors(Module &M, const AnchoredDesc *Desc,
std::vector<void*> &AnchoredDescs) {
- SmallVector<GlobalVariable*, 64> Globals;
+ std::vector<GlobalVariable*> Globals;
getGlobalVariablesUsing(M, Desc->getAnchorString(), Globals);
for (unsigned i = 0, N = Globals.size(); i < N; ++i) {