blob: e27ecad0a8841698dd56d86cefc79b9f126e6741 [file] [log] [blame]
Eugene Zelenkodeaf6952017-02-17 00:00:09 +00001//===- Comdat.cpp - Implement Metadata classes ----------------------------===//
David Majnemerdad0a642014-06-27 18:19:56 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the Comdat class.
11//
12//===----------------------------------------------------------------------===//
13
David Majnemerdad0a642014-06-27 18:19:56 +000014#include "llvm/ADT/StringMap.h"
Eugene Zelenkodeaf6952017-02-17 00:00:09 +000015#include "llvm/ADT/StringRef.h"
16#include "llvm/IR/Comdat.h"
17
David Majnemerdad0a642014-06-27 18:19:56 +000018using namespace llvm;
19
David Majnemerdad0a642014-06-27 18:19:56 +000020Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {}
21
Eugene Zelenkodeaf6952017-02-17 00:00:09 +000022Comdat::Comdat() = default;
David Majnemerdad0a642014-06-27 18:19:56 +000023
24StringRef Comdat::getName() const { return Name->first(); }