[PATCH] D60418: inline asm: Don't copy llvm::MemoryBuffers when showing diagnostics

2019-04-22 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. > This is blocked on fixing PR41431. I reviewed the code, but timed out while trying to understand PR41431. Maybe ping @rsmith about it again? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60418/new/ https://reviews.llvm.org/D60418 _

[PATCH] D60418: inline asm: Don't copy llvm::MemoryBuffers when showing diagnostics

2019-04-08 Thread Nico Weber via Phabricator via cfe-commits
thakis marked an inline comment as done. thakis added inline comments. Comment at: clang/lib/Lex/Lexer.cpp:2355 + // XXX so comment is handled before pp directive is done, so no linetable + // entry yet when the handler runs. if (ParsingPreprocessorDirective || CurPtr == Buf

[PATCH] D60418: inline asm: Don't copy llvm::MemoryBuffers when showing diagnostics

2019-04-08 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. thakis added reviewers: rnk, rsmith. This fixes one TODO and one FIXME in ConvertBackendLocation() about not copying llvm::MemoryBuffers when converting from from llvm::SMDiagnostics to clang::Diagnostics. The basic idea is to use `SourceManager::createFileID(clan