#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
+#include "llvm/Support/ScopedPrinter.h"
// Other libraries and framework includes
#include "DisassemblerLLVMC.h"
}
else
{
- ret.m_immediate = std::stoull(str, nullptr, 0);
+ ret.m_immediate = strtoull(str.c_str(), nullptr, 0);
return std::make_pair(ret, osi);
}
case 'x':
++osi;
}
- ret.m_immediate = std::stoull(str, nullptr, 0);
+ ret.m_immediate = strtoull(str.c_str(), nullptr, 0);
return std::make_pair(ret, osi);
}
{
s.PutCString("-");
}
- s.PutCString(std::to_string(op.m_immediate).c_str());
+ s.PutCString(llvm::to_string(op.m_immediate).c_str());
break;
case Operand::Type::Invalid:
s.PutCString("Invalid");
address_loc += (sizeof(address_string) - 1);
- uint64_t address = std::stoull(address_loc, 0, 0);
+ uint64_t address = strtoull(address_loc, 0, 0);
if (crashing_address)
{
*crashing_address = address;