projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding a collector name attribute to Function in the IR. These
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
MachineCodeEmitter.h
diff --git
a/include/llvm/CodeGen/MachineCodeEmitter.h
b/include/llvm/CodeGen/MachineCodeEmitter.h
index b1d2a9a77c7f2aee0ff8a0d1fcea310aac44fb9c..018c5e5a3a6b701bf2d3e29aad3a7d4d5cc4afff 100644
(file)
--- a/
include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/
include/llvm/CodeGen/MachineCodeEmitter.h
@@
-80,7
+80,7
@@
public:
/// have constant pools, the can only use the other emitByte*/emitWord*
/// methods.
///
/// have constant pools, the can only use the other emitByte*/emitWord*
/// methods.
///
- virtual void startFunctionStub(unsigned StubSize) = 0;
+ virtual void startFunctionStub(unsigned StubSize
, unsigned Alignment = 1
) = 0;
/// finishFunctionStub - This callback is invoked to terminate a function
/// stub.
/// finishFunctionStub - This callback is invoked to terminate a function
/// stub.
@@
-129,7
+129,8
@@
public:
if (Alignment == 0) Alignment = 1;
// Move the current buffer ptr up to the specified alignment.
CurBufferPtr =
if (Alignment == 0) Alignment = 1;
// Move the current buffer ptr up to the specified alignment.
CurBufferPtr =
- (unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) & ~(Alignment-1));
+ (unsigned char*)(((intptr_t)CurBufferPtr+Alignment-1) &
+ ~(intptr_t)(Alignment-1));
if (CurBufferPtr > BufferEnd)
CurBufferPtr = BufferEnd;
}
if (CurBufferPtr > BufferEnd)
CurBufferPtr = BufferEnd;
}