mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Remove last traces of _DH.
With the merge of 1.072 the definition of _DH is no longer needed.
This commit is contained in:
@@ -240,7 +240,6 @@ include_directories(
|
||||
|
||||
add_definitions(
|
||||
-DIN_LLVM
|
||||
-D_DH
|
||||
-DOPAQUE_VTBLS
|
||||
-DLDC_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
|
||||
)
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user