Merge pull request #439 from russellhadley/RemoveGlobalDumpLevel

Remove global dumpLevel routine.
This commit is contained in:
Russell C Hadley 2015-04-16 13:09:12 -07:00
Родитель c0c42bbe99 17355a369f
Коммит 80ef8ce3ce
1 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@ -45,24 +45,6 @@
using namespace llvm;
// Get the LLVM IR dump level. For now this is done by directly
// accessing environment variable. When CLR config support is
// included, update it here.
LLVMDumpLevel dumpLevel() {
const char *LevelCStr = getenv("DUMPLLVMIR");
if (LevelCStr) {
std::string Level = LevelCStr;
std::transform(Level.begin(), Level.end(), Level.begin(), ::toupper);
if (Level.compare("VERBOSE") == 0) {
return VERBOSE;
}
if (Level.compare("SUMMARY") == 0) {
return SUMMARY;
}
}
return NODUMP;
}
// Get the GC-Scheme used by the runtime -- conservative/precise
// For now this is done by directly accessing environment variable.
// When CLR config support is included, update it here.