Push LLVMContexts through the IntegerType APIs.

llvm-svn: 78948
This commit is contained in:
Owen Anderson
2009-08-13 21:58:54 +00:00
parent 41a750271b
commit 55f1c09e31
160 changed files with 1984 additions and 1597 deletions

View File

@@ -39,8 +39,13 @@ static const char *const PSVNames[] = {
"ConstantPool"
};
// FIXME: THIS IS A HACK!!!!
// Eventually these should be uniqued on LLVMContext rather than in a managed
// static. For now, we can safely use the global context for the time being to
// squeak by.
PseudoSourceValue::PseudoSourceValue() :
Value(PointerType::getUnqual(Type::Int8Ty), PseudoSourceValueVal) {}
Value(PointerType::getUnqual(Type::getInt8Ty(getGlobalContext())),
PseudoSourceValueVal) {}
void PseudoSourceValue::dump() const {
print(errs()); errs() << '\n';