Skip to content

Commit 9417424

Browse files
committed
[llvm] manual fix-ups to IDS codemod of MC and MCA libraries
1 parent 5142640 commit 9417424

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

llvm/include/llvm/MC/MCAsmInfo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ class LLVM_ABI MCAsmInfo {
428428
explicit MCAsmInfo();
429429
virtual ~MCAsmInfo();
430430

431+
// Explicitly non-copyable.
432+
MCAsmInfo(MCAsmInfo const&) = delete;
433+
MCAsmInfo& operator=(MCAsmInfo const&) = delete;
434+
431435
/// Get the code pointer size in bytes.
432436
unsigned getCodePointerSize() const { return CodePointerSize; }
433437

llvm/include/llvm/MC/MCCodeEmitter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef LLVM_MC_MCCODEEMITTER_H
1010
#define LLVM_MC_MCCODEEMITTER_H
1111

12+
#include "llvm/Support/Compiler.h"
13+
1214
namespace llvm {
1315

1416
class MCFixup;

llvm/include/llvm/MC/MCDisassembler/MCRelocationInfo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef LLVM_MC_MCDISASSEMBLER_MCRELOCATIONINFO_H
1616
#define LLVM_MC_MCDISASSEMBLER_MCRELOCATIONINFO_H
1717

18+
#include "llvm/Support/Compiler.h"
19+
1820
namespace llvm {
1921

2022
class MCContext;

llvm/include/llvm/MCA/HardwareUnits/HardwareUnit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef LLVM_MCA_HARDWAREUNITS_HARDWAREUNIT_H
1616
#define LLVM_MCA_HARDWAREUNITS_HARDWAREUNIT_H
1717

18+
#include "llvm/Support/Compiler.h"
19+
1820
namespace llvm {
1921
namespace mca {
2022

llvm/include/llvm/MCA/IncrementalSourceMgr.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ class LLVM_ABI IncrementalSourceMgr : public SourceMgr {
4848
public:
4949
IncrementalSourceMgr() = default;
5050

51+
// Explicitly non-copyable.
52+
IncrementalSourceMgr& operator=(const IncrementalSourceMgr&) = delete;
53+
IncrementalSourceMgr(const IncrementalSourceMgr&) = delete;
54+
5155
void clear();
5256

5357
/// Set a callback that is invoked when a mca::Instruction is

0 commit comments

Comments
 (0)