/external/llvm-project/lldb/unittests/Host/linux/ |
D | SupportTest.cpp | 16 auto BufferOrError = getProcFile(getpid(), "maps"); in TEST() local 17 ASSERT_TRUE(BufferOrError); in TEST() 18 ASSERT_TRUE(*BufferOrError); in TEST() 22 auto BufferOrError = getProcFile(getpid(), llvm::get_threadid(), "comm"); in TEST() local 23 ASSERT_TRUE(BufferOrError); in TEST() 24 ASSERT_TRUE(*BufferOrError); in TEST()
|
/external/llvm-project/lldb/unittests/TestingSupport/ |
D | TestUtilities.cpp | 40 auto BufferOrError = in fromYamlFile() local 43 if (!BufferOrError) in fromYamlFile() 44 return llvm::errorCodeToError(BufferOrError.getError()); in fromYamlFile() 45 return fromYaml(BufferOrError.get()->getBuffer()); in fromYamlFile()
|
/external/llvm-project/lldb/source/Host/linux/ |
D | Host.cpp | 59 auto BufferOrError = getProcFile(Pid, "status"); in GetStatusInfo() local 60 if (!BufferOrError) in GetStatusInfo() 63 llvm::StringRef Rest = BufferOrError.get()->getBuffer(); in GetStatusInfo() 147 auto BufferOrError = getProcFile(pid, "cmdline"); in GetProcessArgs() local 148 if (!BufferOrError) in GetProcessArgs() 150 std::unique_ptr<llvm::MemoryBuffer> Cmdline = std::move(*BufferOrError); in GetProcessArgs() 191 auto BufferOrError = getProcFile(pid, "environ"); in GetProcessEnviron() local 192 if (!BufferOrError) in GetProcessEnviron() 195 std::unique_ptr<llvm::MemoryBuffer> Environ = std::move(*BufferOrError); in GetProcessEnviron()
|
/external/llvm-project/lldb/source/Plugins/Process/Linux/ |
D | ProcessorTrace.cpp | 193 auto BufferOrError = getProcFile("cpuinfo"); in GetCPUType() local 194 if (!BufferOrError) in GetCPUType() 195 return BufferOrError.getError(); in GetCPUType() 199 StringRef Rest = BufferOrError.get()->getBuffer(); in GetCPUType()
|
D | NativeThreadLinux.cpp | 99 auto BufferOrError = getProcFile(process.GetID(), GetID(), "comm"); in GetName() local 100 if (!BufferOrError) in GetName() 102 return std::string(BufferOrError.get()->getBuffer().rtrim('\n')); in GetName()
|
D | NativeProcessLinux.cpp | 1317 auto BufferOrError = getProcFile(GetID(), "smaps"); in PopulateMemoryRegionCache() local 1318 if (BufferOrError) in PopulateMemoryRegionCache() 1319 ParseLinuxSMapRegions(BufferOrError.get()->getBuffer(), callback); in PopulateMemoryRegionCache() 1321 BufferOrError = getProcFile(GetID(), "maps"); in PopulateMemoryRegionCache() 1322 if (!BufferOrError) { in PopulateMemoryRegionCache() 1324 return BufferOrError.getError(); in PopulateMemoryRegionCache() 1327 ParseLinuxMapRegions(BufferOrError.get()->getBuffer(), callback); in PopulateMemoryRegionCache()
|
/external/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 37 auto BufferOrError = setupMemoryBuffer(Path); in create() local 38 if (Error E = BufferOrError.takeError()) in create() 40 return InstrProfReader::create(std::move(BufferOrError.get())); in create() 72 auto BufferOrError = setupMemoryBuffer(Path); in create() local 73 if (Error E = BufferOrError.takeError()) in create() 75 return IndexedInstrProfReader::create(std::move(BufferOrError.get())); in create()
|
D | SampleProfReader.cpp | 760 auto BufferOrError = setupMemoryBuffer(Filename); in create() local 761 if (std::error_code EC = BufferOrError.getError()) in create() 763 return create(BufferOrError.get(), C); in create()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | TFUtils.cpp | 230 auto BufferOrError = MemoryBuffer::getFileOrSTDIN(FileName); in loadOutputSpecs() local 231 if (!BufferOrError) { in loadOutputSpecs() 233 BufferOrError.getError().message()); in loadOutputSpecs() 236 auto ParsedJSONValues = json::parse(BufferOrError.get()->getBuffer()); in loadOutputSpecs()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 56 auto BufferOrError = setupMemoryBuffer(Path); in create() local 57 if (Error E = BufferOrError.takeError()) in create() 59 return InstrProfReader::create(std::move(BufferOrError.get())); in create() 94 auto BufferOrError = setupMemoryBuffer(Path); in create() local 95 if (Error E = BufferOrError.takeError()) in create() 108 return IndexedInstrProfReader::create(std::move(BufferOrError.get()), in create()
|
D | SampleProfReader.cpp | 1268 auto BufferOrError = setupMemoryBuffer(Filename); in create() local 1269 if (std::error_code EC = BufferOrError.getError()) in create() 1271 return create(BufferOrError.get(), C, RemapFilename); in create() 1288 auto BufferOrError = setupMemoryBuffer(Filename); in create() local 1289 if (std::error_code EC = BufferOrError.getError()) in create() 1291 return create(BufferOrError.get(), Reader, C); in create()
|
/external/llvm-project/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 57 auto BufferOrError = setupMemoryBuffer(Path); in create() local 58 if (Error E = BufferOrError.takeError()) in create() 60 return InstrProfReader::create(std::move(BufferOrError.get())); in create() 95 auto BufferOrError = setupMemoryBuffer(Path); in create() local 96 if (Error E = BufferOrError.takeError()) in create() 109 return IndexedInstrProfReader::create(std::move(BufferOrError.get()), in create()
|
D | SampleProfReader.cpp | 1404 auto BufferOrError = setupMemoryBuffer(Filename); in create() local 1405 if (std::error_code EC = BufferOrError.getError()) in create() 1407 return create(BufferOrError.get(), C, RemapFilename); in create() 1424 auto BufferOrError = setupMemoryBuffer(Filename); in create() local 1425 if (std::error_code EC = BufferOrError.getError()) in create() 1427 return create(BufferOrError.get(), Reader, C); in create()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 98 auto BufferOrError = in getBuffer() local 111 if (!BufferOrError) { in getBuffer() 122 BufferOrError.getError().message()); in getBuffer() 125 << ContentsEntry->getName() << BufferOrError.getError().message(); in getBuffer() 133 Buffer.setPointer(BufferOrError->release()); in getBuffer()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 135 auto BufferOrError = FM.getBufferForFile(ContentsEntry, IsFileVolatile); in getBufferOrNone() local 142 if (!BufferOrError) { in getBufferOrNone() 146 BufferOrError.getError().message()); in getBufferOrNone() 149 << ContentsEntry->getName() << BufferOrError.getError().message(); in getBufferOrNone() 154 Buffer = std::move(*BufferOrError); in getBufferOrNone()
|
/external/llvm-project/llvm/tools/llvm-objdump/ |
D | llvm-objdump.cpp | 986 auto BufferOrError = MemoryBuffer::getFile(LineInfo.FileName); in cacheSource() local 987 if (!BufferOrError) { in cacheSource() 993 Buffer = std::move(*BufferOrError); in cacheSource()
|