aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-09 03:27:41 +0000
committerChris Lattner <sabre@nondot.org>2003-05-09 03:27:41 +0000
commite0e72177c0ca447d1d2acab798a7ca2786d5618d (patch)
treee671c0757b530de88c17242259f9aa5e59efcdf8 /lib
parenteccf8d05ee2a23a53ff6e892cf1c34fe5da234e0 (diff)
downloadexternal_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.zip
external_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.tar.gz
external_llvm-e0e72177c0ca447d1d2acab798a7ca2786d5618d.tar.bz2
Allow const functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index 270a7b9..d91efe2 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -22,11 +22,12 @@ namespace {
std::cout << "\n--- Basic Block: " << BB.getBasicBlock()->getName()<<"\n";
}
- void startFunctionStub(Function &F, unsigned StubSize) {
+ void startFunctionStub(const Function &F, unsigned StubSize) {
std::cout << "\n--- Function stub for function: " << F.getName() << "\n";
}
- void finishFunctionStub(Function &F) {
+ void *finishFunctionStub(const Function &F) {
std::cout << "\n";
+ return 0;
}
void emitByte(unsigned char B) {