aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-12-18 00:31:10 +0000
committerEric Christopher <echristo@gmail.com>2012-12-18 00:31:10 +0000
commit27e2b983beb8b5a29869639637327725623069a8 (patch)
tree558b2e5d9a00e83cb3754c125df5762471e611e3 /lib/Driver/Tools.h
parent073fec91b73f08ba86ad46573141be14c7a0d262 (diff)
Add support for passing the main file name down to the assembler
for location information. Part of PR14624 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.h')
-rw-r--r--lib/Driver/Tools.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Driver/Tools.h b/lib/Driver/Tools.h
index be38edb034..dcfd3114dd 100644
--- a/lib/Driver/Tools.h
+++ b/lib/Driver/Tools.h
@@ -30,6 +30,7 @@ namespace tools {
/// \brief Clang compiler tool.
class LLVM_LIBRARY_VISIBILITY Clang : public Tool {
+ public:
static const char *getBaseInputName(const ArgList &Args,
const InputInfoList &Inputs);
static const char *getBaseInputStem(const ArgList &Args,
@@ -37,6 +38,7 @@ namespace tools {
static const char *getDependencyFileName(const ArgList &Args,
const InputInfoList &Inputs);
+ private:
void AddPreprocessingOptions(Compilation &C,
const Driver &D,
const ArgList &Args,
@@ -286,15 +288,15 @@ namespace darwin {
class LLVM_LIBRARY_VISIBILITY VerifyDebug : public DarwinTool {
public:
VerifyDebug(const ToolChain &TC) : DarwinTool("darwin::VerifyDebug",
- "dwarfdump", TC) {}
+ "dwarfdump", TC) {}
virtual bool hasIntegratedCPP() const { return false; }
virtual void ConstructJob(Compilation &C, const JobAction &JA,
- const InputInfo &Output,
- const InputInfoList &Inputs,
- const ArgList &TCArgs,
- const char *LinkingOutput) const;
+ const InputInfo &Output,
+ const InputInfoList &Inputs,
+ const ArgList &TCArgs,
+ const char *LinkingOutput) const;
};
}