summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/Driver/WinLinkModuleDef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkModuleDef.cpp b/lld/lib/Driver/WinLinkModuleDef.cpp
index 3faa45518fd..d182aa8fe61 100644
--- a/lld/lib/Driver/WinLinkModuleDef.cpp
+++ b/lld/lib/Driver/WinLinkModuleDef.cpp
@@ -94,7 +94,7 @@ llvm::Optional<Directive *> Parser::parse() {
return llvm::None;
return new (_alloc) Heapsize(reserve, commit);
}
- error(_tok, "Expected EXPORTS or HEAPSIZE");
+ error(_tok, Twine("Unknown directive: ") + _tok._range);
return llvm::None;
}
OpenPOWER on IntegriCloud