[llvm-branch-commits] [llvm-branch] r109287 - /llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Fri Jul 23 16:09:42 PDT 2010
Author: ggreif
Date: Fri Jul 23 18:09:42 2010
New Revision: 109287
URL: http://llvm.org/viewvc/llvm-project?rev=109287&view=rev
Log:
cosmetics
Modified:
llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
Modified: llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp?rev=109287&r1=109286&r2=109287&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Fri Jul 23 18:09:42 2010
@@ -285,11 +285,11 @@
/// Prefixed allocation - just before the first Use, allocate a NULL pointer.
/// The destructor can detect its presence and readjust the OperandList
-/// for deletition.
+/// for deletion.
///
void *User::operator new(size_t s, unsigned Us, bool Prefix) {
- // currently prefixed allocation only admissible for
- // unconditional branch instructions
+ // Currently prefixed allocation only admissible for
+ // unconditional branch instructions.
if (!Prefix)
return operator new(s, Us);
@@ -316,22 +316,22 @@
User *Start = static_cast<User*>(Usr);
Use *Storage = static_cast<Use*>(Usr) - Start->NumOperands;
//
- // look for a variadic User
+ // Look for a variadic User.
if (Storage == Start->OperandList) {
::operator delete(Storage);
return;
}
//
- // check for the flag whether the destructor has detected a prefixed
+ // Check for the flag whether the destructor has detected a prefixed
// allocation, in which case we remove the flag and delete starting
- // at OperandList
+ // at OperandList.
if (reinterpret_cast<intptr_t>(Start->OperandList) & 1) {
::operator delete(reinterpret_cast<char*>(Start->OperandList) - 1);
return;
}
//
- // in all other cases just delete the nullary User (covers hung-off
- // uses also
+ // In all other cases just delete the nullary User (covers hung-off
+ // uses also).
::operator delete(Usr);
}
More information about the llvm-branch-commits
mailing list