summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/CoreLinkingContext.cpp
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2014-02-24 21:14:37 +0000
committerNico Rieck <nico.rieck@gmail.com>2014-02-24 21:14:37 +0000
commitb9d84f4d14bc4db8abae30999d6beb64c3f8546a (patch)
treec9c6298852e3570c541d3e90cd4aee131a4679a1 /lld/lib/ReaderWriter/CoreLinkingContext.cpp
parent78f2b48e7d9a602e8f81f375f88b4bd4f4bad04a (diff)
downloadbcm5719-llvm-b9d84f4d14bc4db8abae30999d6beb64c3f8546a.tar.gz
bcm5719-llvm-b9d84f4d14bc4db8abae30999d6beb64c3f8546a.zip
[lld] Include reference kind in cycle detector debug output
This restores the debug output to how it was before r197727 broke it. This went undetected because the corresponding test was never run due to broken feature detection. llvm-svn: 202079
Diffstat (limited to 'lld/lib/ReaderWriter/CoreLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/CoreLinkingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
index 2e4d45dea48..31d8440b099 100644
--- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
@@ -262,7 +262,7 @@ bool CoreLinkingContext::validateImpl(raw_ostream &) {
void CoreLinkingContext::addPasses(PassManager &pm) {
for (StringRef name : _passNames) {
if (name.equals("layout"))
- pm.add(std::unique_ptr<Pass>((new LayoutPass())));
+ pm.add(std::unique_ptr<Pass>(new LayoutPass(registry())));
else if (name.equals("GOT"))
pm.add(std::unique_ptr<Pass>(new TestingGOTPass(*this)));
else if (name.equals("stubs"))
OpenPOWER on IntegriCloud