forked from OSchip/llvm-project
Fix build issue when building lld against libstdc++ 4.7
llvm-svn: 170983
This commit is contained in:
parent
fc5ee3516c
commit
d02bf1d232
|
@ -48,7 +48,7 @@ public:
|
|||
virtual ~Driver();
|
||||
|
||||
virtual std::unique_ptr<llvm::opt::DerivedArgList>
|
||||
transform(llvm::ArrayRef<const char *const> args) = 0;
|
||||
transform(llvm::ArrayRef<const char *> args) = 0;
|
||||
|
||||
/// \param flavor driver flavor to create.
|
||||
/// \param defaultTargetTriple target triple as determined by the program name
|
||||
|
|
|
@ -89,7 +89,7 @@ public:
|
|||
LDDriver(StringRef defaultTargetTriple) : Driver(defaultTargetTriple) {}
|
||||
|
||||
virtual std::unique_ptr<llvm::opt::DerivedArgList>
|
||||
transform(llvm::ArrayRef<const char *const> args) {
|
||||
transform(llvm::ArrayRef<const char *> args) {
|
||||
assert(!_inputArgs && "transform may only be called once!");
|
||||
|
||||
unsigned missingIndex, missingCount;
|
||||
|
|
|
@ -123,7 +123,7 @@ int main(int argc, char **argv) {
|
|||
// Transform to core arguments.
|
||||
driver = Driver::create(iHazAFlavor, getDefaultTarget(argc, argv));
|
||||
coreArgs = driver->transform(
|
||||
llvm::ArrayRef<const char *const>(argv + 1, argv + argc));
|
||||
llvm::ArrayRef<const char *>(argv + 1, argv + argc));
|
||||
}
|
||||
|
||||
if (!coreArgs)
|
||||
|
|
Loading…
Reference in New Issue