[llvm-commits] [llvm-gcc-4.2] r77150 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-debug.cpp
Daniel Dunbar
daniel at zuster.org
Sun Jul 26 02:26:29 PDT 2009
Author: ddunbar
Date: Sun Jul 26 04:26:00 2009
New Revision: 77150
URL: http://llvm.org/viewvc/llvm-project?rev=77150&view=rev
Log:
Switch to getName()
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=77150&r1=77149&r2=77150&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sun Jul 26 04:26:00 2009
@@ -1074,7 +1074,7 @@
return CI->getOperand(0);
return Builder.CreateCast(Instruction::CastOps(opcode), V, Ty,
- V->getNameStart());
+ V->getName().data());
}
/// CastToAnyType - Cast the specified value to the specified type making no
@@ -2876,7 +2876,7 @@
// defined - ensure it can be uniquely identified by not folding the cast.
Instruction::CastOps opc = CastInst::getCastOpcode(RHS, RHSSigned,
LHSTy, LHSSigned);
- CastInst *Cast = CastInst::Create(opc, RHS, LHSTy, RHS->getNameStart());
+ CastInst *Cast = CastInst::Create(opc, RHS, LHSTy, RHS->getName());
if (opc == Instruction::BitCast && RHS->getType() == LHSTy)
// Simplify this no-op bitcast once the function is emitted.
UniquedValues.push_back(cast<BitCastInst>(Cast));
@@ -6353,7 +6353,7 @@
// attribute on a whole struct from one on the first element of the
// struct.
BitCastInst *CastFieldPtr = new BitCastInst(FieldPtr, SBP,
- FieldPtr->getNameStart());
+ FieldPtr->getName());
Builder.Insert(CastFieldPtr);
Value *Ops[4] = {
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=77150&r1=77149&r2=77150&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Sun Jul 26 04:26:00 2009
@@ -185,7 +185,7 @@
// Use llvm value name as linkage name if it is available.
if (DECL_LLVM_SET_P(Node)) {
Value *V = DECL_LLVM(Node);
- return V->getNameStart();
+ return V->getName().data();
}
tree decl_name = DECL_NAME(Node);
More information about the llvm-commits
mailing list