diff --git a/lld/include/lld/Driver/Driver.h b/lld/include/lld/Driver/Driver.h index d2ff7b453961..22bd031c0e5f 100644 --- a/lld/include/lld/Driver/Driver.h +++ b/lld/include/lld/Driver/Driver.h @@ -48,7 +48,7 @@ public: virtual ~Driver(); virtual std::unique_ptr - transform(llvm::ArrayRef args) = 0; + transform(llvm::ArrayRef args) = 0; /// \param flavor driver flavor to create. /// \param defaultTargetTriple target triple as determined by the program name diff --git a/lld/lib/Driver/Drivers.cpp b/lld/lib/Driver/Drivers.cpp index 5b3478c5f6b2..5add202b921c 100644 --- a/lld/lib/Driver/Drivers.cpp +++ b/lld/lib/Driver/Drivers.cpp @@ -89,7 +89,7 @@ public: LDDriver(StringRef defaultTargetTriple) : Driver(defaultTargetTriple) {} virtual std::unique_ptr - transform(llvm::ArrayRef args) { + transform(llvm::ArrayRef args) { assert(!_inputArgs && "transform may only be called once!"); unsigned missingIndex, missingCount; diff --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp index 78b2547b5dfd..fe1cee96aac7 100644 --- a/lld/tools/lld/lld.cpp +++ b/lld/tools/lld/lld.cpp @@ -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(argv + 1, argv + argc)); + llvm::ArrayRef(argv + 1, argv + argc)); } if (!coreArgs)