This is an archive of the discontinued LLVM Phabricator instance.

[NFC][LLDB] Using namespace llvm in EmulateInstructionRISCV
ClosedPublic

Authored by Emmmer on Dec 15 2022, 3:58 AM.

Details

Summary

The EmulateInstructionRISCV uses a lot of types and functions in llvm and lldb, this change is to make the code look cleaner.

PS: This patch should be merged before D140032.

Diff Detail

Event Timeline

Emmmer created this revision.Dec 15 2022, 3:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 3:58 AM
Emmmer requested review of this revision.Dec 15 2022, 3:58 AM
Emmmer edited the summary of this revision. (Show Details)Dec 15 2022, 3:59 AM
Emmmer updated this revision to Diff 483117.Dec 15 2022, 4:01 AM

Updating D140092: [NFC] Using namespace llvm in EmulateInstructionRISCV

This revision is now accepted and ready to land.Dec 15 2022, 4:43 AM

Please tag [LLDB] in the commit title.

Emmmer retitled this revision from [NFC] Using namespace llvm in EmulateInstructionRISCV to [NFC][LLDB] Using namespace llvm in EmulateInstructionRISCV.Dec 15 2022, 4:44 AM
Emmmer updated this revision to Diff 483142.Dec 15 2022, 5:28 AM

rebase main

labath added a subscriber: labath.Dec 15 2022, 10:54 AM
labath added inline comments.
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
21–22

You cannot use using namespace in a header file. That pollutes the lldb_private namespace for everyone who includes this file. Please revert this immediately.

Emmmer marked an inline comment as done.Dec 15 2022, 11:33 AM