|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/ErrorOr.h 157 const_reference get() const { return const_cast<ErrorOr<T> *>(this)->get(); }
lib/AsmParser/Parser.cpp 66 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots,
96 return parseAssemblyWithIndex(FileOrErr.get()->getMemBufferRef(), Err,
144 return parseSummaryIndexAssembly(FileOrErr.get()->getMemBufferRef(), Err);
lib/Bitcode/Reader/BitReader.cpp 71 *OutModule = wrap(ModuleOrErr.get().release());
120 *OutM = wrap(ModuleOrErr.get().release());
lib/CodeGen/MIRParser/MIRParser.cpp 937 return createMIRParser(std::move(FileOrErr.get()), Context);
lib/DebugInfo/GSYM/GsymReader.cpp 42 return create(BuffOrErr.get());
lib/DebugInfo/PDB/PDBContext.cpp 28 Session->setLoadAddress(ImageBase.get());
lib/DebugInfo/Symbolize/DIPrinter.cpp 43 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
lib/DebugInfo/Symbolize/Symbolize.cpp 195 return CRCHash == llvm::crc32(arrayRefFromStringRef(MB.get()->getBuffer()));
lib/FuzzMutate/FuzzerCLI.cpp 161 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
lib/IR/Core.cpp 4007 *OutMemBuf = wrap(MBOrErr.get().release());
4018 *OutMemBuf = wrap(MBOrErr.get().release());
lib/IRReader/IRReader.cpp 64 return getLazyIRModule(std::move(FileOrErr.get()), Err, Context,
107 return parseIR(FileOrErr.get()->getMemBufferRef(), Err, Context,
lib/LTO/LTO.cpp 288 Hasher.update(FileOrErr.get()->getBuffer());
293 Hasher.update(FileOrErr.get()->getBuffer());
lib/LTO/LTOModule.cpp 68 BufferOrErr.get()->getMemBufferRef());
117 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get());
139 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get());
lib/LTO/ThinLTOCodeGenerator.cpp 1066 ProducedBinaries[count] = std::move(ErrOrBuffer.get());
1069 count, CacheEntryPath, *ErrOrBuffer.get());
lib/Object/Binary.cpp 102 std::unique_ptr<MemoryBuffer> &Buffer = FileOrErr.get();
lib/Object/ObjectFile.cpp 173 std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get());
lib/ProfileData/Coverage/CoverageMapping.cpp 322 CovMappingBufOrErr.get()->getMemBufferRef();
334 Buffers.push_back(std::move(CovMappingBufOrErr.get()));
lib/ProfileData/GCOV.cpp 627 Buffer = std::move(BufferOrErr.get());
lib/ProfileData/InstrProfReader.cpp 46 return std::move(BufferOrErr.get());
lib/ProfileData/SampleProfReader.cpp 1247 auto Buffer = std::move(BufferOrErr.get());
1271 return create(BufferOrError.get(), C, RemapFilename);
1291 return create(BufferOrError.get(), Reader, C);
1357 Reader->Remapper = std::move(ReaderOrErr.get());
lib/Support/CachePruning.cpp 271 sys::fs::space_info SpaceInfo = ErrOrSpaceInfo.get();
lib/Support/CommandLine.cpp 1048 MemoryBuffer &MemBuf = *MemBufOrErr.get();
lib/Support/FileUtilities.cpp 191 MemoryBuffer &F1 = *F1OrErr.get();
199 MemoryBuffer &F2 = *F2OrErr.get();
lib/Support/LockFileManager.cpp 60 MemoryBuffer &MB = *MBOrErr.get();
lib/Support/Signals.cpp 178 StringRef Output = OutputBuf.get()->getBuffer();
lib/Support/SpecialCaseList.cpp 108 if (!parse(FileOrErr.get().get(), Sections, ParseError)) {
lib/Support/VirtualFileSystem.cpp 132 llvm::sys::fs::make_absolute(WorkingDir.get(), Path);
397 FS->setCurrentWorkingDirectory(getCurrentWorkingDirectory().get());
lib/TableGen/Main.cpp 125 if (std::move(ExistingOrErr.get())->getBuffer() == Out.str())
lib/Target/X86/X86InsertPrefetch.cpp 169 Reader = std::move(ReaderOrErr.get());
lib/ToolDrivers/llvm-lib/LibDriver.cpp 122 if (identify_magic(MaybeBuf.get()->getBuffer()) == file_magic::archive) {
123 B = std::move(MaybeBuf.get());
lib/Transforms/IPO/SampleProfile.cpp 689 CoverageTracker.markSamplesUsed(FS, LineOffset, Discriminator, R.get());
707 << DIL->getBaseDiscriminator() << " - weight: " << R.get()
746 BlockWeights[&BB] = Weight.get();
812 for (const auto &T_C : T.get())
1440 if (!T || T.get().empty())
1443 GetSortedValueDataFromCallTargets(T.get());
1687 Reader = std::move(ReaderOrErr.get());
tools/clang/lib/ARCMigrate/FileRemapper.cpp 71 fileBuf.get()->getBuffer().split(lines, "\n");
tools/clang/lib/ARCMigrate/ObjCMT.cpp 2099 Stream YAMLStream(FileBufOrErr.get()->getMemBufferRef(), SM);
tools/clang/lib/CodeGen/CGCUDANV.cpp 525 CudaGpuBinary = std::move(CudaGpuBinaryOrErr.get());
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 4241 C, llvm::parseBitcodeFile(Buf.get()->getMemBufferRef(), C));
4251 llvm::NamedMDNode *MD = ME.get()->getNamedMetadata("omp_offload.info");
tools/clang/lib/Driver/DarwinSDKInfo.cpp 29 llvm::json::parse(File.get()->getBuffer());
tools/clang/lib/Driver/Distro.cpp 24 StringRef Data = File.get()->getBuffer();
62 StringRef Data = File.get()->getBuffer();
80 StringRef Data = File.get()->getBuffer();
115 StringRef Data = File.get()->getBuffer();
tools/clang/lib/Driver/Driver.cpp 1190 StringRef Data = CrashFile.get()->getBuffer();
tools/clang/lib/Driver/ToolChains/Gnu.cpp 2440 File.get()->getBuffer().split(Lines, "\n");
2463 ConfigFile.get()->getBuffer().split(ConfigLines, "\n");
tools/clang/lib/Driver/ToolChains/MinGW.cpp 380 Base = llvm::sys::path::parent_path(TargetSubdir.get());
383 llvm::sys::path::parent_path(GPPName.get()));
tools/clang/lib/Format/Format.cpp 2636 parseConfiguration(Text.get()->getBuffer(), &Style)) {
tools/clang/lib/Frontend/CompilerInstance.cpp 209 llvm::vfs::collectVFSFromYAML(std::move(Buffer.get()),
883 std::unique_ptr<llvm::MemoryBuffer> SB = std::move(SBOrErr.get());
tools/clang/lib/Frontend/CompilerInvocation.cpp 3709 std::move(Buffer.get()), /*DiagHandler*/ nullptr, File,
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp 178 switch (Res.get()) {
230 switch (Res.get()) {
tools/clang/lib/Serialization/ASTReader.cpp 2379 auto ContentHash = hash_value(MemBuffOrError.get()->getBuffer());
tools/clang/lib/Serialization/GlobalModuleIndex.cpp 263 std::unique_ptr<llvm::MemoryBuffer> Buffer = std::move(BufferOrErr.get());
tools/clang/lib/StaticAnalyzer/Checkers/Yaml.h 43 llvm::yaml::Input Input(Buffer.get()->getBuffer());
tools/clang/tools/arcmt-test/arcmt-test.cpp 219 return file1.get()->getBuffer() == file2.get()->getBuffer();
219 return file1.get()->getBuffer() == file2.get()->getBuffer();
251 inputBuf.get()->getBuffer().split(strs, "\n", /*MaxSplit=*/-1,
tools/clang/tools/clang-format/ClangFormat.cpp 324 Sources.translateFileLineCol(FileEntryPtr.get(), PLoc.getLine(), 1);
326 FileEntryPtr.get(), PLoc.getLine() + 1, 1);
384 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get());
491 Code = std::move(CodeOrErr.get());
tools/clang/tools/clang-refactor/TestSupport.cpp 166 StringRef Source = ErrOrFile.get()->getBuffer();
302 StringRef Source = ErrOrFile.get()->getBuffer();
tools/clang/tools/clang-rename/ClangRename.cpp 114 llvm::yaml::Input YAML(Buffer.get()->getBuffer());
tools/clang/tools/driver/cc1gen_reproducer_main.cpp 170 llvm::yaml::Input YAML(Buffer.get()->getBuffer());
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp 68 yaml::Input YIn(Out.get()->getBuffer(), nullptr, &eatDiagnostics);
112 yaml::Input YIn(Out.get()->getBuffer(), nullptr, &eatDiagnostics);
241 return tooling::applyAtomicChanges(File, Buffer.get()->getBuffer(), Changes,
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp 91 llvm::StringRef Content = File.get()->getBuffer();
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp 138 find_all_symbols::ReadSymbolInfosFromYAML(Buffer.get()->getBuffer()));
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp 31 find_all_symbols::ReadSymbolInfosFromYAML(Buffer.get()->getBuffer())));
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp 104 ReadSymbolInfosFromYAML(Buffer.get()->getBuffer());
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 284 Code = std::move(CodeOrErr.get());
420 Buffer.get()->getBuffer(), Context, *InsertStyle);
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp 198 StringRef Code = Buffer.get()->getBuffer();
386 Context.setCurrentBuildDirectory(WorkingDir.get());
591 FileSystem.setCurrentWorkingDirectory(InitialWorkingDir.get());
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp 320 std::move(Buffer.get()), /*DiagHandler*/ nullptr, OverlayFile);
tools/clang/tools/extra/clangd/ParsedAST.cpp 317 Filename, Content, Style, BuildDir.get(),
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 154 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false);
227 listBuffer.get()->getBuffer().split(Strings, "\n", -1, false);
tools/gold/gold-plugin.cpp 522 Buffer = std::move(BufferOrErr.get());
tools/lld/lib/Driver/DarwinLdDriver.cpp 124 ctx.registry().loadFile(std::move(mbOrErr.get()));
127 std::unique_ptr<File> &file = fileOrErr.get();
tools/lld/lib/ReaderWriter/FileArchive.cpp 157 result = std::move(fileOrErr.get());
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 665 std::unique_ptr<MemoryBuffer> mb = std::move(mbOrErr.get());
682 registry().loadFile(std::move(mbOrErr.get()));
685 std::unique_ptr<File> &file = fileOrErr.get();
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp 35 mb = std::move(mbOrErr.get());
tools/lldb/source/Commands/CommandObjectReproducer.cpp 262 std::move(buffer.get()), nullptr, vfs_mapping.GetPath());
tools/lldb/source/Host/common/FileSystem.cpp 66 InstanceImpl().emplace(llvm::vfs::getVFSFromYAML(std::move(buffer.get()),
tools/lldb/source/Host/linux/Host.cpp 57 llvm::StringRef Rest = BufferOrError.get()->getBuffer();
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp 1306 ParseLinuxMapRegions(BufferOrError.get()->getBuffer(),
tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp 102 return BufferOrError.get()->getBuffer().rtrim('\n');
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp 87 StringRef rest = ret.get()->getBuffer();
185 StringRef Rest = BufferOrError.get()->getBuffer();
tools/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp 21 DataExtractor auxv_data(buffer_or_error.get()->getBufferStart(),
22 buffer_or_error.get()->getBufferSize(),
tools/lldb/source/Target/Platform.cpp 778 file_permissions = Value.get();
tools/lldb/source/Utility/StructuredData.cpp 48 return ParseJSON(buffer_or_error.get()->getBuffer().str());
tools/lldb/unittests/TestingSupport/TestUtilities.cpp 55 return fromYaml(BufferOrError.get()->getBuffer());
tools/lli/lli.cpp 274 return MemoryBuffer::getMemBufferCopy(IRObjectBuffer.get()->getBuffer());
498 std::unique_ptr<MemoryBuffer> &ArBuf = ArBufOrErr.get();
tools/llvm-ar/llvm-ar.cpp 971 object::Archive Archive(Buf.get()->getMemBufferRef(), Err);
975 performOperation(Operation, &Archive, std::move(Buf.get()), NewMembers);
1000 const MemoryBuffer &Ref = *Buf.get();
tools/llvm-cfi-verify/llvm-cfi-verify.cpp 69 std::unique_ptr<MemoryBuffer> File = std::move(FileOrErr.get());
tools/llvm-cov/CodeCoverage.cpp 247 LoadedSourceFiles.emplace_back(SourceFile, std::move(Buffer.get()));
266 SourceCoverageView::create(Expansion.Function.Name, SourceBuffer.get(),
285 SourceBuffer.get(), ViewOpts,
303 auto View = SourceCoverageView::create(SourceFile, SourceBuffer.get(),
323 Funcname, SourceBuffer.get(), ViewOpts, std::move(SubViewCoverage));
tools/llvm-cov/gcov.cpp 52 GCOVBuffer GCNO_GB(GCNO_Buff.get().get());
68 GCOVBuffer GCDA_GB(GCDA_Buff.get().get());
tools/llvm-cxxmap/llvm-cxxmap.cpp 152 remapSymbols(*OldSymbolBufOrError.get(), *NewSymbolBufOrError.get(),
152 remapSymbols(*OldSymbolBufOrError.get(), *NewSymbolBufOrError.get(),
153 *RemappingBufOrError.get(), OS);
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 527 std::unique_ptr<MemoryBuffer> Buffer = std::move(BuffOrErr.get());
tools/llvm-exegesis/lib/SnippetFile.cpp 128 SM.AddNewSourceBuffer(std::move(BufferPtr.get()), SMLoc());
tools/llvm-lto/llvm-lto.cpp 316 Buffer = std::move(BufferOrErr.get());
tools/llvm-mt/llvm-mt.cpp 143 MemoryBuffer &Manifest = *ManifestOrErr.get();
tools/llvm-nm/llvm-nm.cpp 1785 createBinary(BufferOrErr.get()->getMemBufferRef(), ContextPtr);
tools/llvm-objcopy/CopyConfig.cpp 273 BufOrErr.get()->getBuffer().split(Lines, '\n');
331 BufOrErr.get()->getBuffer().split(Lines, '\n');
tools/llvm-objdump/MachODump.cpp 7367 DSYMBuf = std::move(BufOrErr.get());
tools/llvm-opt-report/OptReport.cpp 295 for (line_iterator LI(*Buf.get(), false); LI != line_iterator(); ++LI)
300 for (line_iterator LI(*Buf.get(), false); LI != line_iterator(); ++LI) {
tools/llvm-pdbutil/llvm-pdbutil.cpp 754 std::unique_ptr<MemoryBuffer> &Buffer = ErrorOrBuffer.get();
tools/llvm-profdata/llvm-profdata.cpp 151 Remapper->File = std::move(BufOrError.get());
488 Readers.push_back(std::move(ReaderOrErr.get()));
523 auto Writer = std::move(WriterOrErr.get());
1026 auto Reader = std::move(ReaderOrErr.get());
tools/llvm-rtdyld/llvm-rtdyld.cpp 591 CheckerFileBuf.get().get()))
tools/llvm-strings/llvm-strings.cpp 116 Buffer.get()->getMemBufferRef().getBuffer());
tools/obj2yaml/wasm2yaml.cpp 383 std::unique_ptr<WasmYAML::Object> YAML(YAMLOrErr.get());
tools/polly/lib/Exchange/JSONExporter.cpp 711 json::parse(result.get().get()->getBuffer());
tools/sancov/sancov.cpp 235 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
850 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get());
1011 OS << *Cov.get();
1067 if (ErrorOrIsCoverage.get()) {
1121 Coverages.push_back(symbolize(*DataOrError.get(), Pair.first));
tools/sanstats/sanstats.cpp 134 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get());
tools/verify-uselistorder/verify-uselistorder.cpp 159 MemoryBuffer *Buffer = BufferOr.get().get();
tools/yaml2obj/yaml2obj.cpp 65 yaml::Input YIn(Buf.get()->getBuffer());
unittests/ProfileData/SampleProfTest.cpp 50 Writer = std::move(WriterOrErr.get());
57 Reader = std::move(ReaderOrErr.get());
210 ASSERT_EQ(1000u, CTMap.get()[MconstructRep]);
211 ASSERT_EQ(437u, CTMap.get()[StringviewRep]);
387 ASSERT_EQ(BodySamples.get(), Max);
unittests/Support/MemoryBufferTest.cpp 116 EXPECT_EQ("123456", MB.get()->getBuffer());
146 const char *BufData = MB.get()->getBufferStart();
192 EXPECT_EQ(MB.get()->getBuffer(), "foofoofoofoofoo");
253 StringRef BufData = Buf.get()->getBuffer();
298 EXPECT_EQ(0x4000UL, MB.get()->getBufferSize());
300 StringRef BufData = MB.get()->getBuffer();
313 EXPECT_EQ(0x3000UL, MB2.get()->getBufferSize());
315 StringRef BufData2 = MB2.get()->getBuffer();
unittests/Support/Path.cpp 1329 StringRef Data = Buffer.get()->getBuffer();
1611 EXPECT_EQ(Perms.get(), AllRWE) << "Should have ignored umask by default";
1617 EXPECT_EQ(Perms.get(), AllRWE) << "Should have ignored umask";
1623 EXPECT_EQ(Perms.get(), static_cast<fs::perms>(0755))
1632 EXPECT_EQ(Perms.get(), static_cast<fs::perms>(0720))
unittests/Support/ReplaceFileTest.cpp 58 return Buffer.get()->getBuffer() == Content;
unittests/Support/VirtualFileSystemTest.cpp 1072 getPosixPath(NormalizedFS.getCurrentWorkingDirectory().get()));
1075 getPosixPath(NormalizedFS.getCurrentWorkingDirectory().get()));
utils/FileCheck/FileCheck.cpp 596 MemoryBuffer &CheckFile = *CheckFileOrErr.get();
616 MemoryBuffer &InputFile = *InputFileOrErr.get();
utils/TableGen/GlobalISelEmitter.cpp 5005 if (!RuleCoverage->parse(*RuleCoverageBufOrErr.get(), Target.getName())) {
utils/yaml-bench/YAMLBench.cpp 206 MemoryBuffer &Buf = *BufOrErr.get();