/external/llvm/unittests/Support/ |
D | ErrorOrTest.cpp | 19 ErrorOr<int> t1() {return 1;} in t1() 20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2() 22 TEST(ErrorOr, SimpleValue) { in TEST() argument 23 ErrorOr<int> a = t1(); in TEST() 29 ErrorOr<int> b = a; in TEST() 40 ErrorOr<std::unique_ptr<int> > t3() { in t3() 44 TEST(ErrorOr, Types) { in TEST() argument 46 ErrorOr<int&> a(x); in TEST() 57 TEST(ErrorOr, Covariant) { in TEST() argument 58 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST() [all …]
|
D | FileOutputBufferTest.cpp | 42 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST() 64 ErrorOr<std::unique_ptr<FileOutputBuffer>> Buffer2OrErr = in TEST() 81 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST() 102 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST()
|
/external/llvm/include/llvm/Support/ |
D | ErrorOr.h | 82 class ErrorOr { 83 template <class OtherT> friend class ErrorOr; variable 98 ErrorOr(E ErrorCode, 106 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function 110 ErrorOr(T Val) : HasError(false) { in ErrorOr() function 114 ErrorOr(const ErrorOr &Other) { in ErrorOr() function 119 ErrorOr( 120 const ErrorOr<OtherT> &Other, 127 explicit ErrorOr( 128 const ErrorOr<OtherT> &Other, [all …]
|
D | MemoryBuffer.h | 71 static ErrorOr<std::unique_ptr<MemoryBuffer>> 78 static ErrorOr<std::unique_ptr<MemoryBuffer>> 88 static ErrorOr<std::unique_ptr<MemoryBuffer>> 119 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN(); 123 static ErrorOr<std::unique_ptr<MemoryBuffer>> 128 static ErrorOr<std::unique_ptr<MemoryBuffer>>
|
/external/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr); 41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr); 42 ErrorOr<ELFYAML::RawContentSection *> 44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr); 45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr); 46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr); 50 ErrorOr<ELFYAML::Object *> dump(); 60 ErrorOr<ELFYAML::Object *> ELFDumper<ELFT>::dump() { in dump() 86 ErrorOr<ArrayRef<Elf_Word>> TableOrErr = Obj.getSHNDXTable(Sec); in dump() 93 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelaSection(&Sec); in dump() [all …]
|
/external/llvm/include/llvm/DebugInfo/Symbolize/ |
D | Symbolize.h | 51 ErrorOr<DILineInfo> symbolizeCode(const std::string &ModuleName, 53 ErrorOr<DIInliningInfo> symbolizeInlinedCode(const std::string &ModuleName, 55 ErrorOr<DIGlobal> symbolizeData(const std::string &ModuleName, 66 ErrorOr<SymbolizableModule *> 76 ErrorOr<ObjectPair> getOrCreateObjectPair(const std::string &Path, 82 ErrorOr<ObjectFile *> getOrCreateObject(const std::string &Path, 85 std::map<std::string, ErrorOr<std::unique_ptr<SymbolizableModule>>> Modules; 88 std::map<std::pair<std::string, std::string>, ErrorOr<ObjectPair>> 92 std::map<std::string, ErrorOr<OwningBinary<Binary>>> BinaryForPath; 96 std::map<std::pair<std::string, std::string>, ErrorOr<std::unique_ptr<ObjectFile>>>
|
/external/llvm/include/llvm/Object/ |
D | Archive.h | 40 ErrorOr<uint32_t> getSize() const; 78 ErrorOr<Child> getNext() const; 80 ErrorOr<StringRef> getName() const; 94 ErrorOr<uint64_t> getSize() const; 96 ErrorOr<uint64_t> getRawSize() const; 98 ErrorOr<StringRef> getBuffer() const; 101 ErrorOr<MemoryBufferRef> getMemoryBufferRef() const; 103 ErrorOr<std::unique_ptr<Binary>> 108 ErrorOr<Child> child; 114 const ErrorOr<Child> *operator->() const { return &child; } [all …]
|
D | ELF.h | 79 ErrorOr<StringRef> getStringTable(const Elf_Shdr *Section) const; 80 ErrorOr<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const; 82 ErrorOr<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const; 107 ErrorOr<const Elf_Dyn *> dynamic_table_begin(const Elf_Phdr *Phdr) const; 108 ErrorOr<const Elf_Dyn *> dynamic_table_end(const Elf_Phdr *Phdr) const; 109 ErrorOr<Elf_Dyn_Range> dynamic_table(const Elf_Phdr *Phdr) const { in dynamic_table() 110 ErrorOr<const Elf_Dyn *> Begin = dynamic_table_begin(Phdr); in dynamic_table() 113 ErrorOr<const Elf_Dyn *> End = dynamic_table_end(Phdr); in dynamic_table() 204 ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym, 207 ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const; [all …]
|
D | ObjectFile.h | 133 ErrorOr<StringRef> getName() const; 136 ErrorOr<uint64_t> getAddress() const; 149 ErrorOr<section_iterator> getSection() const; 196 virtual ErrorOr<StringRef> getSymbolName(DataRefImpl Symb) const = 0; 199 virtual ErrorOr<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0; 204 virtual ErrorOr<section_iterator> 276 static ErrorOr<OwningBinary<ObjectFile>> 279 static ErrorOr<std::unique_ptr<ObjectFile>> 281 static ErrorOr<std::unique_ptr<ObjectFile>> 291 static ErrorOr<std::unique_ptr<COFFObjectFile>> [all …]
|
D | FunctionIndexObjectFile.h | 72 static ErrorOr<MemoryBufferRef> findBitcodeInObject(const ObjectFile &Obj); 77 static ErrorOr<MemoryBufferRef> 89 static ErrorOr<std::unique_ptr<FunctionIndexObjectFile>> 105 ErrorOr<std::unique_ptr<FunctionInfoIndex>>
|
D | MachOUniversal.h | 64 ErrorOr<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const; 66 ErrorOr<std::unique_ptr<Archive>> getAsArchive() const; 90 static ErrorOr<std::unique_ptr<MachOUniversalBinary>> 111 ErrorOr<std::unique_ptr<MachOObjectFile>>
|
/external/llvm/lib/Object/ |
D | FunctionIndexObjectFile.cpp | 35 ErrorOr<MemoryBufferRef> 52 ErrorOr<MemoryBufferRef> 61 ErrorOr<std::unique_ptr<ObjectFile>> ObjFile = in findBitcodeInMemBuffer() 76 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in hasFunctionSummaryInMemBuffer() 86 ErrorOr<std::unique_ptr<FunctionIndexObjectFile>> 92 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create() 96 ErrorOr<std::unique_ptr<FunctionInfoIndex>> IOrErr = getFunctionInfoIndex( in create() 126 ErrorOr<std::unique_ptr<FunctionInfoIndex>> 129 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getFunctionIndexForFile() 135 ErrorOr<std::unique_ptr<object::FunctionIndexObjectFile>> ObjOrErr = in getFunctionIndexForFile()
|
D | Archive.cpp | 46 ErrorOr<uint32_t> ArchiveMemberHeader::getSize() const { in getSize() 98 ErrorOr<uint64_t> MemberSize = getRawSize(); in Child() 117 ErrorOr<uint64_t> Archive::Child::getSize() const { in getSize() 119 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getSize() 127 ErrorOr<uint64_t> Archive::Child::getRawSize() const { in getRawSize() 128 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getRawSize() 139 ErrorOr<StringRef> Archive::Child::getBuffer() const { in getBuffer() 141 ErrorOr<uint32_t> Size = getSize(); in getBuffer() 146 ErrorOr<StringRef> Name = getName(); in getBuffer() 152 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getFile(FullName); in getBuffer() [all …]
|
D | ObjectFile.cpp | 32 ErrorOr<section_iterator> SymSec = S.getSection(); in containsSymbol() 49 ErrorOr<StringRef> Name = getSymbolName(Symb); in printSymbolName() 62 ErrorOr<std::unique_ptr<ObjectFile>> 101 ErrorOr<OwningBinary<ObjectFile>> 103 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createObjectFile() 109 ErrorOr<std::unique_ptr<ObjectFile>> ObjOrErr = in createObjectFile()
|
D | Binary.cpp | 39 ErrorOr<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer, in createBinary() 77 ErrorOr<OwningBinary<Binary>> object::createBinary(StringRef Path) { in createBinary() 78 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in createBinary() 84 ErrorOr<std::unique_ptr<Binary>> BinOrErr = in createBinary()
|
/external/llvm/tools/dsymutil/ |
D | BinaryHolder.h | 55 ErrorOr<std::vector<MemoryBufferRef>> 63 ErrorOr<std::vector<MemoryBufferRef>> 75 ErrorOr<std::vector<MemoryBufferRef>> 79 ErrorOr<const object::ObjectFile &> getObjfileForArch(const Triple &T); 91 ErrorOr<std::vector<const object::ObjectFile *>> 97 ErrorOr<std::vector<const ObjectFileType *>> 118 ErrorOr<const object::ObjectFile &> Get(const Triple &T) { in Get() 125 ErrorOr<const ObjectFileType &> GetAs(const Triple &T) { in GetAs()
|
/external/clang/include/clang/Basic/ |
D | VirtualFileSystem.h | 92 virtual llvm::ErrorOr<Status> status() = 0; 94 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 187 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 189 virtual llvm::ErrorOr<std::unique_ptr<File>> 194 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 207 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0; 251 llvm::ErrorOr<Status> status(const Twine &Path) override; 252 llvm::ErrorOr<std::unique_ptr<File>> 255 llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override; 295 llvm::ErrorOr<Status> status(const Twine &Path) override; [all …]
|
/external/llvm/include/llvm/ProfileData/ |
D | SampleProfReader.h | 266 static ErrorOr<std::unique_ptr<SampleProfileReader>> 270 static ErrorOr<std::unique_ptr<SampleProfileReader>> 324 template <typename T> ErrorOr<T> readNumber(); 332 ErrorOr<StringRef> readString(); 335 ErrorOr<StringRef> readStringFromTable(); 388 template <typename T> ErrorOr<T> readNumber(); 389 ErrorOr<StringRef> readString();
|
D | SampleProfWriter.h | 60 static ErrorOr<std::unique_ptr<SampleProfileWriter>> 65 static ErrorOr<std::unique_ptr<SampleProfileWriter>> 100 friend ErrorOr<std::unique_ptr<SampleProfileWriter>> 125 friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
|
/external/llvm/include/llvm/LTO/ |
D | LTOModule.h | 94 static ErrorOr<std::unique_ptr<LTOModule>> 96 static ErrorOr<std::unique_ptr<LTOModule>> 99 static ErrorOr<std::unique_ptr<LTOModule>> 102 static ErrorOr<std::unique_ptr<LTOModule>> 106 static ErrorOr<std::unique_ptr<LTOModule>> 109 static ErrorOr<std::unique_ptr<LTOModule>> 209 static ErrorOr<std::unique_ptr<LTOModule>>
|
/external/llvm/lib/LTO/ |
D | LTOModule.cpp | 67 ErrorOr<MemoryBufferRef> BCData = IRObjectFile::findBitcodeInMemBuffer( in isBitcodeFile() 73 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile() 78 ErrorOr<MemoryBufferRef> BCData = IRObjectFile::findBitcodeInMemBuffer( in isBitcodeFile() 85 ErrorOr<MemoryBufferRef> BCOrErr = in isBitcodeForTarget() 95 ErrorOr<MemoryBufferRef> BCOrErr = in getProducerString() 103 ErrorOr<std::unique_ptr<LTOModule>> 106 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile() 114 ErrorOr<std::unique_ptr<LTOModule>> 120 ErrorOr<std::unique_ptr<LTOModule>> 124 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice() [all …]
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 100 static ErrorOr<std::unique_ptr<MemoryBuffer>> 164 ErrorOr<std::unique_ptr<MemoryBuffer>> 175 ErrorOr<std::unique_ptr<MemoryBuffer>> 227 static ErrorOr<std::unique_ptr<MemoryBuffer>> 247 ErrorOr<std::unique_ptr<MemoryBuffer>> 254 static ErrorOr<std::unique_ptr<MemoryBuffer>> 259 static ErrorOr<std::unique_ptr<MemoryBuffer>> 267 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret = in getFileAux() 330 static ErrorOr<std::unique_ptr<MemoryBuffer>> 408 ErrorOr<std::unique_ptr<MemoryBuffer>> [all …]
|
/external/clang/lib/Basic/ |
D | VirtualFileSystem.cpp | 91 ErrorOr<std::unique_ptr<MemoryBuffer>> 132 ErrorOr<Status> status() override; 133 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name, 142 ErrorOr<Status> RealFile::status() { in status() 153 ErrorOr<std::unique_ptr<MemoryBuffer>> 182 ErrorOr<Status> status(const Twine &Path) override; 183 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override; 186 llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override; 191 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() 198 ErrorOr<std::unique_ptr<File>> [all …]
|
/external/llvm/tools/llvm-readobj/ |
D | ARMWinEHPrinter.cpp | 186 ErrorOr<object::SectionRef> 198 ErrorOr<object::SymbolRef> Decoder::getSymbol(const COFFObjectFile &COFF, in getSymbol() 204 ErrorOr<uint64_t> Address = Symbol.getAddress(); in getSymbol() 213 ErrorOr<SymbolRef> Decoder::getRelocatedSymbol(const COFFObjectFile &, in getRelocatedSymbol() 565 ErrorOr<SymbolRef> Symbol = in dumpXDataRecord() 570 ErrorOr<StringRef> Name = Symbol->getName(); in dumpXDataRecord() 588 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset); in dumpUnpackedEntry() 592 ErrorOr<SymbolRef> XDataRecord = getRelocatedSymbol(COFF, Section, Offset + 4); in dumpUnpackedEntry() 604 ErrorOr<StringRef> FunctionNameOrErr = Function->getName(); in dumpUnpackedEntry() 608 ErrorOr<uint64_t> FunctionAddressOrErr = Function->getAddress(); in dumpUnpackedEntry() [all …]
|
/external/llvm/include/llvm/Bitcode/ |
D | ReaderWriter.h | 37 ErrorOr<std::unique_ptr<Module>> 44 ErrorOr<std::unique_ptr<Module>> 62 ErrorOr<std::unique_ptr<Module>> parseBitcodeFile(MemoryBufferRef Buffer, 74 ErrorOr<std::unique_ptr<FunctionInfoIndex>>
|