2017-02-17 08:00:09 +08:00
|
|
|
//===- Comdat.cpp - Implement Metadata classes ----------------------------===//
|
2014-06-28 02:19:56 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the Comdat class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-06-06 19:49:48 +08:00
|
|
|
#include "llvm/IR/Comdat.h"
|
2014-06-28 02:19:56 +08:00
|
|
|
#include "llvm/ADT/StringMap.h"
|
2017-02-17 08:00:09 +08:00
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
|
2014-06-28 02:19:56 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {}
|
|
|
|
|
2017-02-17 08:00:09 +08:00
|
|
|
Comdat::Comdat() = default;
|
2014-06-28 02:19:56 +08:00
|
|
|
|
|
|
|
StringRef Comdat::getName() const { return Name->first(); }
|