mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-28 06:35:49 +00:00
Minor cleanups.
This pass should be moved to lib/Target/Sparc since it's sparc specific It also needs a file comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9efc4d6aaa
commit
78ddcd7b03
@ -2,19 +2,17 @@
|
|||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class FunctionInfo : public Pass {
|
class FunctionInfo : public Pass {
|
||||||
std::ostream &Out;
|
std::ostream &Out;
|
||||||
public:
|
public:
|
||||||
FunctionInfo(std::ostream &out) : Out(out){}
|
FunctionInfo(std::ostream &out) : Out(out){}
|
||||||
const char* getPassName() const{return "Sparc FunctionInfo";}
|
const char* getPassName() const{ return "Sparc FunctionInfo"; }
|
||||||
bool run(Module &M);
|
bool run(Module &M);
|
||||||
private:
|
private:
|
||||||
void FunctionInfo::writePrologue(const char *area,
|
void writePrologue(const char *area, const char *label);
|
||||||
const char *label);
|
void writeEpilogue(const char *area, const char *label);
|
||||||
void FunctionInfo::writeEpilogue(const char *area,
|
|
||||||
const char *label);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user