Mercurial > projects > ldc
comparison gen/passes/StripMetaData.cpp @ 1533:d1652c8fb4f6
Get rid of USE_METADATA
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Sat, 11 Jul 2009 14:19:21 +0200 |
parents | c21a6654cce2 |
children | ed0feda76820 |
comparison
equal
deleted
inserted
replaced
1532:c88b16d4a13c | 1533:d1652c8fb4f6 |
---|---|
16 // metadata or they won't work. | 16 // metadata or they won't work. |
17 // | 17 // |
18 //===----------------------------------------------------------------------===// | 18 //===----------------------------------------------------------------------===// |
19 | 19 |
20 #include "gen/metadata.h" | 20 #include "gen/metadata.h" |
21 | |
22 // This pass isn't needed without metadata, so #ifdef it out entirely if the | |
23 // LLVM version in use doesn't support it. | |
24 #ifdef USE_METADATA | |
25 | |
26 | 21 |
27 #define DEBUG_TYPE "strip-metadata" | 22 #define DEBUG_TYPE "strip-metadata" |
28 | 23 |
29 #include "Passes.h" | 24 #include "Passes.h" |
30 | 25 |
77 G->eraseFromParent(); | 72 G->eraseFromParent(); |
78 } | 73 } |
79 } | 74 } |
80 return Changed; | 75 return Changed; |
81 } | 76 } |
82 | |
83 | |
84 #endif //USE_METADATA |