Commit a87fa642 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add missing include, and make GCC happy

parent b737c559
......@@ -173,7 +173,7 @@ void PystonJITEventListener::NotifyObjectEmitted(const llvm::ObjectImage& Obj) {
for (llvm::object::symbol_iterator I = Obj.begin_symbols(), E = Obj.end_symbols(); I != E;) {
llvm::StringRef name;
uint64_t addr, size, offset;
uint64_t addr, size, offset=0;
code = I->getName(name);
assert(!code);
code = I->getAddress(addr);
......
......@@ -57,7 +57,7 @@ void StackmapJITEventListener::NotifyObjectEmitted(const llvm::ObjectImage& Obj)
assert(!code);
if (name == "__LLVM_StackMaps") {
uint64_t stackmap_offset;
uint64_t stackmap_offset = 0;
code = I->getFileOffset(stackmap_offset);
assert(!code);
// code = I->getSize(stackmap_size);
......
......@@ -15,6 +15,8 @@
#ifndef PYSTON_CORE_AST_H
#define PYSTON_CORE_AST_H
#include "core/common.h"
#include <cassert>
#include <cstdlib>
#include <stdint.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment