#ifndef LLVM_ASSEMBLY_CACHED_WRITER_H
#define LLVM_ASSEMBLY_CACHED_WRITER_H
-#include "llvm/Assembly/Writer.h"
+#include "llvm/Value.h"
#include <iostream>
-class AssemblyWriter; // Internal private class
+class Module;
+class PointerType;
class SlotCalculator;
+class AssemblyWriter; // Internal private class
class CachedWriter {
AssemblyWriter *AW;
inline CachedWriter &operator<<(Value *X) {
return *this << (const Value*)X;
}
- inline CachedWriter &operator<<(const Module *X) {
- return *this << (const Value*)X;
- }
inline CachedWriter &operator<<(const GlobalVariable *X) {
return *this << (const Value*)X;
}
- inline CachedWriter &operator<<(const Method *X) {
+ inline CachedWriter &operator<<(const Function *X) {
return *this << (const Value*)X;
}
- inline CachedWriter &operator<<(const MethodArgument *X) {
+ inline CachedWriter &operator<<(const Argument *X) {
return *this << (const Value*)X;
}
inline CachedWriter &operator<<(const BasicBlock *X) {