summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-30 23:03:37 +0000
committerOwen Anderson <resistor@mac.com>2009-07-30 23:03:37 +0000
commitb292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (patch)
tree4847eb648a3d471bdd4b7653a8f83ad5cb4224bd /llvm/lib/Analysis/DebugInfo.cpp
parent5ac2f49516d8624d998873dbd322e22f0ee5f358 (diff)
downloadbcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.tar.gz
bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.zip
Move more code back to 2.5 APIs.
llvm-svn: 77635
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index 635b6b9ee84..18996232870 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/lib/Analysis/DebugInfo.cpp
@@ -497,7 +497,7 @@ Constant *DIFactory::GetStringConstant(const std::string &String) {
// If empty string then use a i8* null instead.
if (String.empty())
- return Slot = VMContext.getConstantPointerNull(DestTy);
+ return Slot = ConstantPointerNull::get(DestTy);
// Construct string as an llvm constant.
Constant *ConstStr = ConstantArray::get(String);
OpenPOWER on IntegriCloud