This is an archive of the discontinued LLVM Phabricator instance.

[X86] Use PC-relative mode for the kernel code model
ClosedPublic

Authored by void on Apr 12 2019, 6:18 PM.

Details

Summary

The Linux kernel uses PC-relative mode, so allow that when the code model is
"kernel".

Diff Detail

Repository
rL LLVM

Event Timeline

void created this revision.Apr 12 2019, 6:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2019, 6:18 PM
craig.topper added inline comments.Apr 12 2019, 6:35 PM
unittests/Support/VirtualFileSystemTest.cpp
404 ↗(On Diff #194991)

Unrelated change?

void marked an inline comment as done.Apr 13 2019, 2:00 AM
void added inline comments.
unittests/Support/VirtualFileSystemTest.cpp
404 ↗(On Diff #194991)

I thought I would fix the warning while I was in there. I can revert this if you like.

This revision is now accepted and ready to land.Apr 13 2019, 9:55 AM
This revision was automatically updated to reflect the committed changes.