1 //===- Comdat.cpp - Implement Metadata classes ----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the Comdat class.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/IR/Comdat.h"
15 #include "llvm/ADT/StringMap.h"
16 #include "llvm/ADT/StringRef.h"
20 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {}
22 Comdat::Comdat() = default;
24 StringRef Comdat::getName() const { return Name->first(); }