mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
a6cf3fbb83
This commit introduces a function to obtain the name assigned to a `llvm::Function` associated to a `model::Function`. This simplifies the codebase but also enables us to introduce an option to produce human-friendly names for debugging/testing purposes.
14 lines
342 B
C++
14 lines
342 B
C++
/// \file CommonOptions.cpp
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "revng/Support/CommonOptions.h"
|
|
|
|
using namespace llvm;
|
|
|
|
cl::opt<bool> DebugNames("debug-names",
|
|
cl::desc("Use friendly names in non-user artifacts"),
|
|
cl::init(false));
|