mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 04:09:45 +00:00
Remove uses of llvm/System/IncludeFile.h that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54eed37131
commit
84b7df43fb
@ -55,6 +55,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
@ -158,10 +159,7 @@ public:
|
||||
void print(std::ostream *o, const Module *M) const { if (o) print(*o, M); }
|
||||
void dump() const;
|
||||
|
||||
// stub - dummy function, just ignore it
|
||||
static int stub;
|
||||
protected:
|
||||
|
||||
// destroy - Release memory for the call graph
|
||||
virtual void destroy();
|
||||
};
|
||||
|
@ -61,7 +61,4 @@ public:
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
// Make sure that any clients of this file link in PostDominators.cpp
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(FindUsedTypes)
|
||||
|
||||
#endif
|
||||
|
@ -1013,7 +1013,4 @@ void LoopBase<BlockT>::addBasicBlockToLoop(BlockT *NewBB,
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
// Make sure that any clients of this file link in LoopInfo.cpp
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(LoopInfo)
|
||||
|
||||
#endif
|
||||
|
@ -92,7 +92,4 @@ private:
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
// Make sure that any clients of this file link in PostDominators.cpp
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(PostDominanceFrontier)
|
||||
|
||||
#endif
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -187,7 +187,4 @@ template <> struct GraphTraits<MachineLoop*> {
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
// Make sure that any clients of this file link in LoopInfo.cpp
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(MachineLoopInfo)
|
||||
|
||||
#endif
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/Intrinsics.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
/// IntrinsicInst - A useful wrapper class for inspecting calls to intrinsic
|
||||
@ -316,8 +315,4 @@ namespace llvm {
|
||||
|
||||
}
|
||||
|
||||
// Ensure that the IntrinsicInst.cpp file gets added as a dependency of any
|
||||
// file that includes this header
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(IntrinsicInst)
|
||||
|
||||
#endif
|
||||
|
@ -21,7 +21,6 @@
|
||||
#ifndef LLVM_PASS_SUPPORT_H
|
||||
#define LLVM_PASS_SUPPORT_H
|
||||
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
// No need to include Pass.h, we are being included by it!
|
||||
|
||||
namespace llvm {
|
||||
|
@ -16,8 +16,6 @@
|
||||
#ifndef LLVM_SUPPORT_DWARF_H
|
||||
#define LLVM_SUPPORT_DWARF_H
|
||||
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
namespace dwarf {
|
||||
@ -567,6 +565,4 @@ const char *CallFrameString(unsigned Encoding);
|
||||
|
||||
} // End of namespace llvm
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SupportDwarf)
|
||||
|
||||
#endif
|
||||
|
@ -14,7 +14,6 @@
|
||||
#ifndef LLVM_SUPPORT_MANGLER_H
|
||||
#define LLVM_SUPPORT_MANGLER_H
|
||||
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
@ -112,7 +111,4 @@ private:
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
// Force the Mangler.cpp file to be linked when this header is #included
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(Mangler)
|
||||
|
||||
#endif // LLVM_SUPPORT_MANGLER_H
|
||||
|
@ -17,8 +17,6 @@
|
||||
#ifndef LLVM_SYSTEM_ALARM_H
|
||||
#define LLVM_SYSTEM_ALARM_H
|
||||
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
|
||||
@ -44,6 +42,4 @@ namespace sys {
|
||||
} // End sys namespace
|
||||
} // End llvm namespace
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemAlarm)
|
||||
|
||||
#endif
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_SYSTEM_DYNAMIC_LIBRARY_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
@ -96,6 +95,4 @@ namespace sys {
|
||||
} // End sys namespace
|
||||
} // End llvm namespace
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemDynamicLibrary)
|
||||
|
||||
#endif // LLVM_SYSTEM_DYNAMIC_LIBRARY_H
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_SYSTEM_MEMORY_H
|
||||
|
||||
#include <string>
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
@ -71,6 +70,4 @@ namespace sys {
|
||||
}
|
||||
}
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemMemory)
|
||||
|
||||
#endif
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_SYSTEM_PROCESS_H
|
||||
|
||||
#include "llvm/System/TimeValue.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
@ -100,6 +99,4 @@ namespace sys {
|
||||
}
|
||||
}
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProcess)
|
||||
|
||||
#endif
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_SYSTEM_PROGRAM_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
@ -90,6 +89,4 @@ namespace sys {
|
||||
}
|
||||
}
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemProgram)
|
||||
|
||||
#endif
|
||||
|
@ -16,7 +16,6 @@
|
||||
#define LLVM_SYSTEM_SIGNALS_H
|
||||
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
@ -50,6 +49,4 @@ namespace sys {
|
||||
} // End sys namespace
|
||||
} // End llvm namespace
|
||||
|
||||
FORCE_DEFINING_FILE_TO_BE_LINKED(SystemSignals)
|
||||
|
||||
#endif
|
||||
|
@ -40,16 +40,10 @@ public:
|
||||
BasicBlock *getUnreachableBlock() const { return UnreachableBlock; }
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
|
||||
// Force linking the impl of this class into anything that uses this header.
|
||||
static int stub;
|
||||
};
|
||||
|
||||
Pass *createUnifyFunctionExitNodesPass();
|
||||
|
||||
static IncludeFile
|
||||
UNIFY_FUNCTION_EXIT_NODES_INCLUDE_FILE(&UnifyFunctionExitNodes::stub);
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -96,6 +96,3 @@ void FindUsedTypes::print(std::ostream &o, const Module *M) const {
|
||||
E = UsedTypes.end(); I != E; ++I)
|
||||
WriteTypeSymbolic(o << " ", *I, M) << "\n";
|
||||
}
|
||||
|
||||
// Ensure that this file gets linked in when FindUsedTypes.h is used.
|
||||
DEFINING_FILE_FOR(FindUsedTypes)
|
||||
|
@ -51,6 +51,3 @@ void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<DominatorTree>();
|
||||
}
|
||||
|
||||
// Ensure this file gets linked when LoopInfo.h is used.
|
||||
DEFINING_FILE_FOR(LoopInfo)
|
||||
|
@ -84,6 +84,3 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
|
||||
|
||||
return S;
|
||||
}
|
||||
|
||||
// Ensure that this .cpp file gets linked when PostDominators.h is used.
|
||||
DEFINING_FILE_FOR(PostDominanceFrontier)
|
||||
|
@ -40,6 +40,3 @@ void MachineLoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<MachineDominatorTree>();
|
||||
}
|
||||
|
||||
// Ensure this file gets linked when MachineLoopInfo.h is used.
|
||||
DEFINING_FILE_FOR(MachineLoopInfo)
|
||||
|
@ -12,7 +12,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/Dwarf.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
@ -582,5 +581,3 @@ const char *CallFrameString(unsigned Encoding) {
|
||||
} // End of namespace dwarf.
|
||||
|
||||
} // End of namespace llvm.
|
||||
|
||||
DEFINING_FILE_FOR(SupportDwarf)
|
||||
|
@ -31,5 +31,3 @@ using namespace sys;
|
||||
#ifdef LLVM_ON_WIN32
|
||||
#include "Win32/Alarm.inc"
|
||||
#endif
|
||||
|
||||
DEFINING_FILE_FOR(SystemAlarm)
|
||||
|
@ -159,5 +159,3 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
||||
}
|
||||
|
||||
#endif // LLVM_ON_WIN32
|
||||
|
||||
DEFINING_FILE_FOR(SystemDynamicLibrary)
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include "llvm/System/Memory.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
@ -33,5 +32,3 @@ using namespace sys;
|
||||
#ifdef LLVM_ON_WIN32
|
||||
#include "Win32/Memory.inc"
|
||||
#endif
|
||||
|
||||
DEFINING_FILE_FOR(SystemMemory)
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
#include "llvm/Config/config.h"
|
||||
#include "llvm/System/Mutex.h"
|
||||
#include "llvm/System/IncludeFile.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//=== WARNING: Implementation here must contain only TRULY operating system
|
||||
|
@ -31,5 +31,3 @@ using namespace sys;
|
||||
#ifdef LLVM_ON_WIN32
|
||||
#include "Win32/Process.inc"
|
||||
#endif
|
||||
|
||||
DEFINING_FILE_FOR(SystemProcess)
|
||||
|
@ -31,5 +31,3 @@ using namespace sys;
|
||||
#ifdef LLVM_ON_WIN32
|
||||
#include "Win32/Program.inc"
|
||||
#endif
|
||||
|
||||
DEFINING_FILE_FOR(SystemProgram)
|
||||
|
@ -32,5 +32,3 @@ using namespace sys;
|
||||
#ifdef LLVM_ON_WIN32
|
||||
#include "Win32/Signals.inc"
|
||||
#endif
|
||||
|
||||
DEFINING_FILE_FOR(SystemSignals)
|
||||
|
@ -28,8 +28,6 @@ char UnifyFunctionExitNodes::ID = 0;
|
||||
static RegisterPass<UnifyFunctionExitNodes>
|
||||
X("mergereturn", "Unify function exit nodes");
|
||||
|
||||
int UnifyFunctionExitNodes::stub;
|
||||
|
||||
Pass *llvm::createUnifyFunctionExitNodesPass() {
|
||||
return new UnifyFunctionExitNodes();
|
||||
}
|
||||
|
@ -74,7 +74,3 @@ std::string DbgStopPointInst::getDirectory() const {
|
||||
ConstantStruct *CS = cast<ConstantStruct>(GV->getInitializer());
|
||||
return CS->getOperand(4)->getStringValue();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// Ensure that users of IntrinsicInst.h will link with this module.
|
||||
DEFINING_FILE_FOR(IntrinsicInst)
|
||||
|
@ -211,6 +211,3 @@ Mangler::Mangler(Module &M, const char *prefix)
|
||||
for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
|
||||
InsertName(I, Names);
|
||||
}
|
||||
|
||||
// Cause this file to be linked in when Support/Mangler.h is #included
|
||||
DEFINING_FILE_FOR(Mangler)
|
||||
|
Loading…
Reference in New Issue
Block a user