[llvm-commits] [llvm] r49342 - in /llvm/branches/ggreif/use-diet: include/llvm/Use.h lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Mon Apr 7 09:58:34 PDT 2008
Author: ggreif
Date: Mon Apr 7 11:58:34 2008
New Revision: 49342
URL: http://llvm.org/viewvc/llvm-project?rev=49342&view=rev
Log:
coding standard
Modified:
llvm/branches/ggreif/use-diet/include/llvm/Use.h
llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
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=49342&r1=49341&r2=49342&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/Use.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/Use.h Mon Apr 7 11:58:34 2008
@@ -50,7 +50,7 @@
Value *get() const { return Val; }
User *getUser() const { return U; }
const Use* getImpliedUser() const;
- void initTags(Use* start, Use* stop, ptrdiff_t done = 0);
+ void initTags(Use *Start, Use *Stop, ptrdiff_t Done = 0);
inline void set(Value *Val);
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp?rev=49342&r1=49341&r2=49342&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Use.cpp Mon Apr 7 11:58:34 2008
@@ -48,21 +48,21 @@
}
}
-void Use::initTags(Use* start, Use* stop, ptrdiff_t done) {
- ptrdiff_t Count = 0;
- while (start != stop)
- {
- --stop;
- if (!Count) {
- stop->Val = reinterpret_cast<Value*>(done == 0 ? fullStopTag : stopTag);
- ++done;
- Count = done;
- } else {
- stop->Val = reinterpret_cast<Value*>(Count & 1);
- Count >>= 1;
- ++done;
- }
+void Use::initTags(Use *Start, Use *Stop, ptrdiff_t Done) {
+ ptrdiff_t Count = 0;
+ while (Start != Stop)
+ {
+ --Stop;
+ if (!Count) {
+ Stop->Val = reinterpret_cast<Value*>(Done == 0 ? fullStopTag : stopTag);
+ ++Done;
+ Count = Done;
+ } else {
+ Stop->Val = reinterpret_cast<Value*>(Count & 1);
+ Count >>= 1;
+ ++Done;
}
+ }
}
More information about the llvm-commits
mailing list