Fix build issue when building lld against libstdc++ 4.7

llvm-svn: 170983
This commit is contained in:
Andy Gibbs 2012-12-22 09:46:10 +00:00
parent fc5ee3516c
commit d02bf1d232
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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)