summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto/LTOCodeGenerator.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-04-30 15:24:09 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-04-30 15:24:09 +0000
commita303097de0c7924f1dffc9d0237260d644d0ef79 (patch)
treef3477d1b92b8ef7f088894142b0265d548f8a26a /llvm/tools/lto/LTOCodeGenerator.h
parent10e21109d7a1165761ab773e030199480501a043 (diff)
downloadbcm5719-llvm-a303097de0c7924f1dffc9d0237260d644d0ef79.tar.gz
bcm5719-llvm-a303097de0c7924f1dffc9d0237260d644d0ef79.zip
Allow a user of libLTO to specify the full pathname of the gcc executable to
run when assembling. Wire this up to the gold plugin. You can now pass --plugin-opt gcc=/foo/bar/gcc and it will run that gcc instead of looking for it on the path. llvm-svn: 70490
Diffstat (limited to 'llvm/tools/lto/LTOCodeGenerator.h')
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.h b/llvm/tools/lto/LTOCodeGenerator.h
index 4a28136f0ad..57398b06500 100644
--- a/llvm/tools/lto/LTOCodeGenerator.h
+++ b/llvm/tools/lto/LTOCodeGenerator.h
@@ -36,6 +36,7 @@ public:
bool addModule(class LTOModule*, std::string& errMsg);
bool setDebugInfo(lto_debug_model, std::string& errMsg);
bool setCodePICModel(lto_codegen_model, std::string& errMsg);
+ void setGccPath(const char* path);
void addMustPreserveSymbol(const char* sym);
bool writeMergedModules(const char* path,
std::string& errMsg);
@@ -59,6 +60,7 @@ private:
StringSet _mustPreserveSymbols;
llvm::MemoryBuffer* _nativeObjectFile;
std::vector<const char*> _codegenOptions;
+ llvm::sys::Path* _gccPath;
};
#endif // LTO_CODE_GENERATOR_H
OpenPOWER on IntegriCloud