mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-06 06:20:04 +02:00
Get rid of USE_METADATA
This commit is contained in:
@@ -14,11 +14,6 @@
|
||||
|
||||
#include "gen/metadata.h"
|
||||
|
||||
// This pass doesn't work without metadata, so #ifdef it out entirely if the
|
||||
// LLVM version in use doesn't support it.
|
||||
#ifdef USE_METADATA
|
||||
|
||||
|
||||
#define DEBUG_TYPE "dgc2stack"
|
||||
|
||||
#include "Passes.h"
|
||||
@@ -647,6 +642,3 @@ bool isSafeToStackAllocate(Instruction* Alloc, DominatorTree& DT) {
|
||||
// All uses examined - not captured or live across original allocation.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
#endif //USE_METADATA
|
||||
|
||||
@@ -10,10 +10,8 @@ namespace llvm {
|
||||
// Performs simplifications on runtime calls.
|
||||
llvm::FunctionPass* createSimplifyDRuntimeCalls();
|
||||
|
||||
#ifdef USE_METADATA
|
||||
llvm::FunctionPass* createGarbageCollect2Stack();
|
||||
llvm::ModulePass* createStripMetaData();
|
||||
#endif
|
||||
|
||||
llvm::ModulePass* createStripExternalsPass();
|
||||
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
|
||||
#include "gen/metadata.h"
|
||||
|
||||
// This pass isn't needed without metadata, so #ifdef it out entirely if the
|
||||
// LLVM version in use doesn't support it.
|
||||
#ifdef USE_METADATA
|
||||
|
||||
|
||||
#define DEBUG_TYPE "strip-metadata"
|
||||
|
||||
#include "Passes.h"
|
||||
@@ -79,6 +74,3 @@ bool StripMetaData::runOnModule(Module &M) {
|
||||
}
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
||||
#endif //USE_METADATA
|
||||
|
||||
Reference in New Issue
Block a user