diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-13 21:58:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-13 21:58:54 +0000 |
commit | 55f1c09e31cfc6744fb682e17a2a1a00d914694c (patch) | |
tree | e753e20c7186dc8138bef58089274bb5162a7cef /llvm/lib/CodeGen/PseudoSourceValue.cpp | |
parent | 41a750271b72216801366693bd0f41672892c487 (diff) | |
download | llvm-55f1c09e31cfc6744fb682e17a2a1a00d914694c.zip llvm-55f1c09e31cfc6744fb682e17a2a1a00d914694c.tar.gz llvm-55f1c09e31cfc6744fb682e17a2a1a00d914694c.tar.bz2 |
Push LLVMContexts through the IntegerType APIs.
llvm-svn: 78948
Diffstat (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PseudoSourceValue.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp index 81cbfb8..c440936 100644 --- a/llvm/lib/CodeGen/PseudoSourceValue.cpp +++ b/llvm/lib/CodeGen/PseudoSourceValue.cpp @@ -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'; |