Remove last traces of _DH.

With the merge of 1.072 the definition of _DH is no longer needed.
This commit is contained in:
kai
2012-02-04 20:36:59 +01:00
parent 8062bb027a
commit 11786aeb35
4 changed files with 1 additions and 14 deletions

View File

@@ -240,7 +240,6 @@ include_directories(
add_definitions(
-DIN_LLVM
-D_DH
-DOPAQUE_VTBLS
-DLDC_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
)

View File

@@ -150,7 +150,6 @@ cl::opt<std::string> jsonFile("Xf",
cl::Prefix);
// Header generation options
#ifdef _DH
static cl::opt<bool, true> doHdrGen("H",
cl::desc("Generate 'header' file"),
cl::location(global.params.doHdrGeneration));
@@ -164,8 +163,6 @@ cl::opt<std::string> hdrFile("Hf",
cl::desc("Write 'header' file to <filename>"),
cl::value_desc("filename"),
cl::Prefix);
#endif
static cl::opt<bool, true> unittest("unittest",

View File

@@ -36,10 +36,8 @@ namespace opts {
extern cl::opt<std::string> ddocDir;
extern cl::opt<std::string> ddocFile;
extern cl::opt<std::string> jsonFile;
#ifdef _DH
extern cl::opt<std::string> hdrDir;
extern cl::opt<std::string> hdrFile;
#endif
extern cl::list<std::string> versions;
extern cl::opt<std::string> moduleDepsFile;

View File

@@ -242,12 +242,10 @@ int main(int argc, char** argv)
if (global.params.xfilename)
global.params.doXGeneration = true;
#ifdef _DH
initFromString(global.params.hdrdir, hdrDir);
initFromString(global.params.hdrname, hdrFile);
global.params.doHdrGeneration |=
global.params.hdrdir || global.params.hdrname;
#endif
initFromString(global.params.moduleDepsFile, moduleDepsFile);
if (global.params.moduleDepsFile != NULL)
@@ -837,11 +835,7 @@ LDC_TARGETS
Module::rootModule = m;
m->importedFrom = m;
m->read(0);
#ifdef _DH
m->parse(global.params.doDocComments);
#else
m->parse();
#endif
m->buildTargetFiles(singleObj);
m->deleteObjFile();
if (m->isDocFile)
@@ -855,7 +849,7 @@ LDC_TARGETS
}
if (global.errors)
fatal();
#ifdef _DH
if (global.params.doHdrGeneration)
{
/* Generate 'header' import files.
@@ -873,7 +867,6 @@ LDC_TARGETS
}
if (global.errors)
fatal();
#endif
// load all unconditional imports for better symbol resolving
for (unsigned i = 0; i < modules.dim; i++)