diff options
Diffstat (limited to 'lib/IR/Comdat.cpp')
-rw-r--r-- | lib/IR/Comdat.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/IR/Comdat.cpp b/lib/IR/Comdat.cpp index fc1b48d1c190..e27ecad0a884 100644 --- a/lib/IR/Comdat.cpp +++ b/lib/IR/Comdat.cpp @@ -1,4 +1,4 @@ -//===-- Comdat.cpp - Implement Metadata classes --------------------------===// +//===- Comdat.cpp - Implement Metadata classes ----------------------------===// // // The LLVM Compiler Infrastructure // @@ -11,12 +11,14 @@ // //===----------------------------------------------------------------------===// -#include "llvm/IR/Comdat.h" #include "llvm/ADT/StringMap.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/IR/Comdat.h" + using namespace llvm; Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} -Comdat::Comdat() : Name(nullptr), SK(Comdat::Any) {} +Comdat::Comdat() = default; StringRef Comdat::getName() const { return Name->first(); } |