diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-09 03:27:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-09 03:27:41 +0000 |
commit | e0e72177c0ca447d1d2acab798a7ca2786d5618d (patch) | |
tree | e671c0757b530de88c17242259f9aa5e59efcdf8 /include/llvm/CodeGen/MachineCodeEmitter.h | |
parent | eccf8d05ee2a23a53ff6e892cf1c34fe5da234e0 (diff) | |
download | external_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.tar.gz external_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.tar.bz2 external_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.zip |
Allow const functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r-- | include/llvm/CodeGen/MachineCodeEmitter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index d3e2414f15..5c4802eacd 100644 --- a/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/include/llvm/CodeGen/MachineCodeEmitter.h @@ -45,12 +45,12 @@ struct MachineCodeEmitter { /// specifies the total size required by the stub. Stubs are not allowed to /// have constant pools, the can only use the other emit* methods. /// - virtual void startFunctionStub(Function &F, unsigned StubSize) {} + virtual void startFunctionStub(const Function &F, unsigned StubSize) {} /// finishFunctionStub - This callback is invoked to terminate a function /// stub. /// - virtual void finishFunctionStub(Function &F) {} + virtual void *finishFunctionStub(const Function &F) { return 0; } /// emitByte - This callback is invoked when a byte needs to be written to the /// output stream. |