aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PseudoSourceValue.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
committerDuncan Sands <baldrick@free.fr>2009-10-06 15:40:36 +0000
commit9ed7b16bf33d191c4f58f41b128aded092cc4ea0 (patch)
tree5a1196d794ebba33ff7470d5b0b8abfa948a0e04 /llvm/lib/CodeGen/PseudoSourceValue.cpp
parentfa21fe7c3d40396ab5c37e087e8b8d02167aee99 (diff)
downloadllvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.zip
llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.tar.gz
llvm-9ed7b16bf33d191c4f58f41b128aded092cc4ea0.tar.bz2
Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
Diffstat (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r--llvm/lib/CodeGen/PseudoSourceValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp
index 3728b7f..00c5d46 100644
--- a/llvm/lib/CodeGen/PseudoSourceValue.cpp
+++ b/llvm/lib/CodeGen/PseudoSourceValue.cpp
@@ -44,7 +44,7 @@ static const char *const PSVNames[] = {
// static. For now, we can safely use the global context for the time being to
// squeak by.
PseudoSourceValue::PseudoSourceValue() :
- Value(PointerType::getUnqual(Type::getInt8Ty(getGlobalContext())),
+ Value(Type::getInt8PtrTy(getGlobalContext()),
PseudoSourceValueVal) {}
void PseudoSourceValue::printCustom(raw_ostream &O) const {