Commit 268fda28 authored by Alexei Starovoitov's avatar Alexei Starovoitov

fix incorrect DataLayout

Signed-off-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
parent b37f8a03
...@@ -252,7 +252,7 @@ int BPFModule::load_cfile(const string &file, bool in_memory) { ...@@ -252,7 +252,7 @@ int BPFModule::load_cfile(const string &file, bool in_memory) {
return -1; return -1;
mod_ = &*mod; mod_ = &*mod;
mod_->setDataLayout("e-m:e-i64:64-f80:128-n8:16:32:64-S128"); mod_->setDataLayout("e-m:e-p:64:64-i64:64-n32:64-S128");
mod_->setTargetTriple("bpf-pc-linux"); mod_->setTargetTriple("bpf-pc-linux");
for (auto fn = mod_->getFunctionList().begin(); fn != mod_->getFunctionList().end(); ++fn) for (auto fn = mod_->getFunctionList().begin(); fn != mod_->getFunctionList().end(); ++fn)
...@@ -283,7 +283,7 @@ int BPFModule::load_includes(const string &tmpfile) { ...@@ -283,7 +283,7 @@ int BPFModule::load_includes(const string &tmpfile) {
return -1; return -1;
mod_ = &*mod; mod_ = &*mod;
mod_->setDataLayout("e-m:e-i64:64-f80:128-n8:16:32:64-S128"); mod_->setDataLayout("e-m:e-p:64:64-i64:64-n32:64-S128");
mod_->setTargetTriple("bpf-pc-linux"); mod_->setTargetTriple("bpf-pc-linux");
for (auto fn = mod_->getFunctionList().begin(); fn != mod_->getFunctionList().end(); ++fn) for (auto fn = mod_->getFunctionList().begin(); fn != mod_->getFunctionList().end(); ++fn)
......
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