[llvm-commits] [llvm] r49527 - in /llvm/branches/ggreif/use-diet: include/llvm/Use.h lib/Bitcode/Reader/BitcodeReader.cpp lib/Bitcode/Reader/BitcodeReader.h
Gabor Greif
ggreif at gmail.com
Fri Apr 11 05:29:51 PDT 2008
Author: ggreif
Date: Fri Apr 11 07:29:35 2008
New Revision: 49527
URL: http://llvm.org/viewvc/llvm-project?rev=49527&view=rev
Log:
small(ish) fixes :->
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/Use.h?rev=49527&r1=49526&r2=49527&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Fri Apr 11 07:29:35 2008
@@ -81,7 +81,7 @@
return reinterpret_cast<Value*>(reinterpret_cast<ptrdiff_t>(V) & ~3UL);
}
Value *transferTag(Value *V) {
- return reinterpret_cast<Value*>(reinterpret_cast<ptrdiff_t>(V) + (reinterpret_cast<ptrdiff_t>(Val) & ~3UL));
+ return reinterpret_cast<Value*>(reinterpret_cast<ptrdiff_t>(V) + (reinterpret_cast<ptrdiff_t>(Val) & 3UL));
}
void addToList(Use **List) {
Next = *List;
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp?rev=49527&r1=49526&r2=49527&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp Fri Apr 11 07:29:35 2008
@@ -157,7 +157,9 @@
Use *New = allocHangoffUses(Desired);
for (int i(getNumOperands() - 1); i >= 0; --i)
New[i] = getOperand(i);
+ Use *Old = OperandList;
OperandList = New;
+ dropHungoffUses(Old);
}
}
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h?rev=49527&r1=49526&r2=49527&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.h Fri Apr 11 07:29:35 2008
@@ -41,6 +41,8 @@
unsigned size() const { return getNumOperands(); }
void resize(unsigned);
void push_back(Value *V) {
+ resize(NumOperands + 1);
+ setOperand(NumOperands, V);
++NumOperands;
}
More information about the llvm-commits
mailing list