[Driver] Error on undefined.

llvm-svn: 171529
This commit is contained in:
Michael J. Spencer 2013-01-04 21:18:02 +00:00
parent 7f693c50db
commit 85d998a109
1 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,12 @@ void LinkerInvocation::operator()() {
inputs.appendFiles(files);
}
ResolverOptions ro;
struct Blah : ResolverOptions {
Blah()
: ResolverOptions() {
_undefinesAreErrors = true;
}
} ro;
Resolver resolver(ro, inputs);
resolver.resolve();
File &merged = resolver.resultFile();