[llvm-commits] [lld] r171529 - /lld/trunk/lib/Driver/LinkerInvocation.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Fri Jan 4 13:18:02 PST 2013
Author: mspencer
Date: Fri Jan 4 15:18:02 2013
New Revision: 171529
URL: http://llvm.org/viewvc/llvm-project?rev=171529&view=rev
Log:
[Driver] Error on undefined.
Modified:
lld/trunk/lib/Driver/LinkerInvocation.cpp
Modified: lld/trunk/lib/Driver/LinkerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/LinkerInvocation.cpp?rev=171529&r1=171528&r2=171529&view=diff
==============================================================================
--- lld/trunk/lib/Driver/LinkerInvocation.cpp (original)
+++ lld/trunk/lib/Driver/LinkerInvocation.cpp Fri Jan 4 15:18:02 2013
@@ -54,7 +54,12 @@
inputs.appendFiles(files);
}
- ResolverOptions ro;
+ struct Blah : ResolverOptions {
+ Blah()
+ : ResolverOptions() {
+ _undefinesAreErrors = true;
+ }
+ } ro;
Resolver resolver(ro, inputs);
resolver.resolve();
File &merged = resolver.resultFile();
More information about the llvm-commits
mailing list