diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-06-19 19:55:25 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-06-19 19:55:25 +0000 |
| commit | dccc8e2cc1f25e86aeb46a4cba4f9c8a1ec674a1 (patch) | |
| tree | 10db7e51940f9727ab29de67e735a689e2259fd9 | |
| parent | 39592635458921ea8fa88ec34870e9c8c517001a (diff) | |
| download | bcm5719-llvm-dccc8e2cc1f25e86aeb46a4cba4f9c8a1ec674a1.tar.gz bcm5719-llvm-dccc8e2cc1f25e86aeb46a4cba4f9c8a1ec674a1.zip | |
Fix no-asserts build failure due to unused variable, and cleanup some unique_ptr usage while I'm here
llvm-svn: 240169
| -rw-r--r-- | lld/lib/ReaderWriter/CoreLinkingContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp index 2f4752bf877..02f6263c0c3 100644 --- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp +++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp @@ -14,6 +14,7 @@ #include "lld/Core/Simple.h" #include "lld/ReaderWriter/CoreLinkingContext.h" #include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/STLExtras.h" using namespace lld; @@ -40,8 +41,9 @@ bool CoreLinkingContext::validateImpl(raw_ostream &) { void CoreLinkingContext::addPasses(PassManager &pm) { for (StringRef name : _passNames) { + (void)name; assert(name == "order" && "bad pass name"); - pm.add(std::unique_ptr<Pass>(new OrderPass())); + pm.add(llvm::make_unique<OrderPass>()); } } |

