forked from OSchip/llvm-project
parent
2ae30e864d
commit
6314641822
|
@ -35,10 +35,8 @@ int main(int argc, char **argv) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
DiagnosticOptions DiagOpts;
|
DiagnosticOptions DiagOpts;
|
||||||
llvm::OwningPtr<Diagnostic> Diags(
|
llvm::IntrusiveRefCntPtr<Diagnostic> Diags
|
||||||
CompilerInstance::createDiagnostics(DiagOpts, argc, argv));
|
= CompilerInstance::createDiagnostics(DiagOpts, argc, argv);
|
||||||
|
|
||||||
llvm::IntrusiveRefCntPtr<Diagnostic> Diags(new Diagnostic);
|
|
||||||
for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) {
|
for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) {
|
||||||
const std::string &InFile = InputFilenames[i];
|
const std::string &InFile = InputFilenames[i];
|
||||||
llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, Diags));
|
llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, Diags));
|
||||||
|
|
Loading…
Reference in New Issue