Home
last modified time | relevance | path

Searched refs:FileOrErr (Results 1 – 12 of 12) sorted by relevance

/external/llvm/lib/IRReader/
DIRReader.cpp54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getLazyIRFileModule() local
56 if (std::error_code EC = FileOrErr.getError()) { in getLazyIRFileModule()
62 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context, in getLazyIRFileModule()
87 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseIRFile() local
89 if (std::error_code EC = FileOrErr.getError()) { in parseIRFile()
95 return parseIR(FileOrErr.get()->getMemBufferRef(), Err, Context); in parseIRFile()
/external/llvm/lib/TableGen/
DMain.cpp77 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in TableGenMain() local
79 if (std::error_code EC = FileOrErr.getError()) { in TableGenMain()
86 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain()
/external/llvm/lib/Object/
DBinary.cpp78 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary() local
80 if (std::error_code EC = FileOrErr.getError()) in createBinary()
82 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get(); in createBinary()
DModuleSummaryIndexObjectFile.cpp111 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile() local
113 std::error_code EC = FileOrErr.getError(); in getModuleSummaryIndexForFile()
116 MemoryBufferRef BufferRef = (FileOrErr.get())->getMemBufferRef(); in getModuleSummaryIndexForFile()
DObjectFile.cpp113 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile() local
115 if (std::error_code EC = FileOrErr.getError()) in createObjectFile()
117 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get()); in createObjectFile()
/external/llvm/lib/AsmParser/
DParser.cpp51 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in parseAssemblyFile() local
53 if (std::error_code EC = FileOrErr.getError()) { in parseAssemblyFile()
59 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots); in parseAssemblyFile()
/external/llvm/lib/Support/
DSpecialCaseList.cpp54 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in create() local
56 if (std::error_code EC = FileOrErr.getError()) { in create()
61 if (!SCL->parse(FileOrErr.get().get(), ParseError)) { in create()
/external/llvm/utils/FileCheck/
DFileCheck.cpp868 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in ReadCheckFile() local
870 if (std::error_code EC = FileOrErr.getError()) { in ReadCheckFile()
879 std::move(FileOrErr.get()), NoCanonicalizeWhiteSpace); in ReadCheckFile()
1335 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in main() local
1337 if (std::error_code EC = FileOrErr.getError()) { in main()
1342 std::unique_ptr<MemoryBuffer> &File = FileOrErr.get(); in main()
/external/clang/lib/Lex/
DPTHLexer.cpp436 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileOrErr = in Create() local
439 if (!FileOrErr) { in Create()
444 std::unique_ptr<llvm::MemoryBuffer> File = std::move(FileOrErr.get()); in Create()
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp774 auto FileOrErr = MemoryBuffer::getFile(Filename); in createMIRParserFromFile() local
775 if (std::error_code EC = FileOrErr.getError()) { in createMIRParserFromFile()
780 return createMIRParser(std::move(FileOrErr.get()), Context); in createMIRParserFromFile()
/external/llvm/test/CodeGen/PowerPC/
Dtoc-load-sched-bug.ll176 %FileOrErr = alloca %"class.llvm::ErrorOr", align 8
187 …oryBuffer14getFileOrSTDINENS_9StringRefEl(%"class.llvm::ErrorOr"* sret %FileOrErr, [2 x i64] %.fca…
188 …%HasError.i24 = getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr,…
195 %retval.sroa.0.0..sroa_cast.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to i64*
197 …getelementptr inbounds %"class.llvm::ErrorOr", %"class.llvm::ErrorOr"* %FileOrErr, i64 0, i32 0, i…
406 …%_M_head_impl.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuffer…
419 …%_M_head_impl.i.i.i.i.i.i = bitcast %"class.llvm::ErrorOr"* %FileOrErr to %"class.llvm::MemoryBuff…
/external/llvm/tools/llvm-objdump/
DMachODump.cpp5955 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in DumpBitcodeSection() local
5957 if (std::error_code EC = FileOrErr.getError()) { in DumpBitcodeSection()
5961 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get(); in DumpBitcodeSection()