llvm-project/llvm/tools/llvm-mc
Justin Bogner 8809c40270 MC: Don't access the filesystem in MCContext's constructor
MCContext shouldn't be accessing the filesystem - that's a gross
layering violation and makes it awkward to use as a library or in a
daemon where it may not even be allowed filesystem access.

The CWD lookup here is normally redundant anyway, since the calling
context either also looks up the CWD or sets this to something more
specific. Here, we fix up the one caller that doesn't already set up a
debug compilation dir and make it clear that the responsibility for
such set up is in the users of MCContext.

llvm-svn: 264109
2016-03-22 22:24:29 +00:00
..
CMakeLists.txt Add targets to cmake for specific target components. 2015-04-20 18:22:05 +00:00
Disassembler.cpp Reflect the MC/MCDisassembler split on the include/ level. 2016-01-26 16:44:37 +00:00
Disassembler.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
LLVMBuild.txt
llvm-mc.cpp MC: Don't access the filesystem in MCContext's constructor 2016-03-22 22:24:29 +00:00