Eugene Zelenko | deaf695 | 2017-02-17 00:00:09 +0000 | [diff] [blame^] | 1 | //===- Comdat.cpp - Implement Metadata classes ----------------------------===// |
David Majnemer | dad0a64 | 2014-06-27 18:19:56 +0000 | [diff] [blame] | 2 | // |
| 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 Majnemer | dad0a64 | 2014-06-27 18:19:56 +0000 | [diff] [blame] | 14 | #include "llvm/ADT/StringMap.h" |
Eugene Zelenko | deaf695 | 2017-02-17 00:00:09 +0000 | [diff] [blame^] | 15 | #include "llvm/ADT/StringRef.h" |
| 16 | #include "llvm/IR/Comdat.h" |
| 17 | |
David Majnemer | dad0a64 | 2014-06-27 18:19:56 +0000 | [diff] [blame] | 18 | using namespace llvm; |
| 19 | |
David Majnemer | dad0a64 | 2014-06-27 18:19:56 +0000 | [diff] [blame] | 20 | Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} |
| 21 | |
Eugene Zelenko | deaf695 | 2017-02-17 00:00:09 +0000 | [diff] [blame^] | 22 | Comdat::Comdat() = default; |
David Majnemer | dad0a64 | 2014-06-27 18:19:56 +0000 | [diff] [blame] | 23 | |
| 24 | StringRef Comdat::getName() const { return Name->first(); } |