Files
llvm-project/llvm/lib/IR/Comdat.cpp
T

25 lines
732 B
C++
Raw Normal View History

//===- Comdat.cpp - Implement Metadata classes ----------------------------===//
2014-06-27 18:19:56 +00: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.
//
//===----------------------------------------------------------------------===//
#include "llvm/IR/Comdat.h"
2014-06-27 18:19:56 +00:00
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
2014-06-27 18:19:56 +00:00
using namespace llvm;
Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {}
Comdat::Comdat() = default;
2014-06-27 18:19:56 +00:00
StringRef Comdat::getName() const { return Name->first(); }