search for: thearchstring

Displaying 4 results from an estimated 4 matches for "thearchstring".

2011 Dec 19
2
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...I)); llvm::OwningPtr<llvm::MemoryBuffer> Buffer; llvm::MemoryBuffer::getFile(llvm::StringRef("/path/to/file.bin"), Buffer); llvm::MCInst Inst; uint64_t Size = 0; disassembler->getInstruction(Inst, Size, *Buffer.take(), 0, llvm::nulls(), llvm::nulls()); // llvm::StringRef TheArchString("arm-apple-darwin"); // std::string normalized = llvm::Triple::normalize(TheArchString); // // llvm::Triple TheTriple; // TheTriple.setArch(llvm::Triple::arm); // TheTriple.setOS(llvm::Triple::Darwin); // TheTriple.setVendor(llvm::Triple::Apple); // llvm::Target *TheTarget = NULL;...
2011 Dec 19
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...I)); llvm::OwningPtr<llvm::MemoryBuffer> Buffer; llvm::MemoryBuffer::getFile(llvm::StringRef("/path/to/file.bin"), Buffer); llvm::MCInst Inst; uint64_t Size = 0; disassembler->getInstruction(Inst, Size, *Buffer.take(), 0, llvm::nulls(), llvm::nulls()); // llvm::StringRef TheArchString("arm-apple-darwin"); // std::string normalized = llvm::Triple::normalize(TheArchString); // // llvm::Triple TheTriple; // TheTriple.setArch(llvm::Triple::arm); // TheTriple.setOS(llvm::Triple::Darwin); // TheTriple.setVendor(llvm::Triple::Apple); // llvm::Target *TheTarget = NULL;...
2011 Dec 19
3
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...ryBuffer> Buffer; > llvm::MemoryBuffer::getFile(llvm::StringRef("/path/to/file.bin"), Buffer); > llvm::MCInst Inst; > uint64_t Size = 0; > > disassembler->getInstruction(Inst, Size, *Buffer.take(), 0, > llvm::nulls(), llvm::nulls()); > > // llvm::StringRef TheArchString("arm-apple-darwin"); > // std::string normalized = llvm::Triple::normalize(TheArchString); > // > // llvm::Triple TheTriple; > // TheTriple.setArch(llvm::Triple::arm); > // TheTriple.setOS(llvm::Triple::Darwin); > // TheTriple.setVendor(llvm::Triple::Apple); > //...
2011 Dec 20
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...llvm::MemoryBuffer::getFile(llvm::StringRef("/path/to/file.bin"), Buffer); >> llvm::MCInst Inst; >> uint64_t Size = 0; >> >> disassembler->getInstruction(Inst, Size, *Buffer.take(), 0, >> llvm::nulls(), llvm::nulls()); >> >> //  llvm::StringRef TheArchString("arm-apple-darwin"); >> //  std::string normalized = llvm::Triple::normalize(TheArchString); >> // >> //  llvm::Triple TheTriple; >> //  TheTriple.setArch(llvm::Triple::arm); >> //  TheTriple.setOS(llvm::Triple::Darwin); >> //  TheTriple.setVendor(llvm:...